|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132 |
- <?php
-
- namespace Lc\CaracoleBundle\Doctrine\Extension;
-
- use Doctrine\ORM\Mapping as ORM;
- use Gedmo\Mapping\Annotation as Gedmo;
-
- trait ProductPropertyTrait
- {
- use PriceTrait;
-
- /**
- * @ORM\Column(type="float", nullable=true)
- */
- protected $buyingPriceByRefUnit;
-
- /**
- * @ORM\Column(type="float", nullable=true)
- */
- protected $priceByRefUnit;
-
- /**
- * @ORM\Column(type="float", nullable=true)
- */
- protected $quantity;
-
- /**
- * @ORM\Column(type="float", nullable=true)
- */
- protected $availableQuantity;
-
- /**
- * @ORM\Column(type="float", nullable=true)
- */
- protected $availableQuantityDefault;
-
- /**
- * @ORM\Column(type="string", length=255, nullable=true)
- */
- protected $propertyExpirationDate;
-
- /**
- * @ORM\Column(type="float", nullable=true)
- */
- protected $weight;
-
-
- public function getBuyingPriceByRefUnit(): ?float
- {
- return $this->buyingPriceByRefUnit;
- }
-
- public function setBuyingPriceByRefUnit(?float $buyingPriceByRefUnit): self
- {
- $this->buyingPriceByRefUnit = $buyingPriceByRefUnit;
-
- return $this;
- }
-
- public function getPriceByRefUnit(): ?float
- {
- return $this->priceByRefUnit;
- }
-
- public function setPriceByRefUnit(?float $priceByRefUnit): self
- {
- $this->priceByRefUnit = $priceByRefUnit;
-
- return $this;
- }
-
- public function getQuantity(): ?float
- {
- return $this->quantity;
- }
-
- public function setQuantity(?float $quantity): self
- {
- $this->quantity = $quantity;
-
- return $this;
- }
-
- public function getAvailableQuantity(): ?float
- {
- return $this->availableQuantity;
- }
-
- public function setAvailableQuantity(?float $availableQuantity): self
- {
- $this->availableQuantity = $availableQuantity;
-
- return $this;
- }
-
- public function getAvailableQuantityDefault(): ?float
- {
- return $this->availableQuantityDefault;
- }
-
- public function setAvailableQuantityDefault(?float $availableQuantityDefault): self
- {
- $this->availableQuantityDefault = $availableQuantityDefault;
-
- return $this;
- }
-
- public function getPropertyExpirationDate(): ?string
- {
- return $this->propertyExpirationDate;
- }
-
- public function setPropertyExpirationDate(?string $propertyExpirationDate): self
- {
- $this->propertyExpirationDate = $propertyExpirationDate;
-
- return $this;
- }
-
- public function getWeight(): ?float
- {
- return $this->weight;
- }
-
- public function setWeight(?float $weight): self
- {
- $this->weight = $weight;
-
- return $this;
- }
-
- }
|