Update BuyableProductTrait.php

This commit is contained in:
Patrick
2021-01-18 21:48:35 +01:00
committed by GitHub
parent 7a0955fe1a
commit 80631bab39

View File

@@ -8,39 +8,4 @@ use Illuminate\Database\Eloquent\Model;
class BuyableProductTrait extends Model implements Buyable
{
use \Gloudemans\Shoppingcart\CanBeBought;
/**
* @var int|string
*/
private $id;
/**
* @var string
*/
private $name;
/**
* @var float
*/
private $price;
/**
* @var float
*/
private $weight;
/**
* BuyableProduct constructor.
*
* @param int|string $id
* @param string $name
* @param float $price
*/
public function __construct($id = 1, $name = 'Item name', $price = 10.00, $weight = 0)
{
$this->id = $id;
$this->name = $name;
$this->price = $price;
$this->weight = $weight;
}
}