@@ -39,6 +39,12 @@ trait ProductPropertyTrait | |||
*/ | |||
protected $propertyExpirationDate; | |||
/** | |||
* @ORM\Column(type="float", nullable=true) | |||
*/ | |||
protected $weight; | |||
public function getBuyingPriceByRefUnit(): ?float | |||
{ | |||
return $this->buyingPriceByRefUnit; | |||
@@ -111,4 +117,16 @@ trait ProductPropertyTrait | |||
return $this; | |||
} | |||
public function getWeight(): ?float | |||
{ | |||
return $this->weight; | |||
} | |||
public function setWeight(?float $weight): self | |||
{ | |||
$this->weight = $weight; | |||
return $this; | |||
} | |||
} |