You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

133 line
2.7KB

  1. <?php
  2. namespace Lc\CaracoleBundle\Doctrine\Extension;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Gedmo\Mapping\Annotation as Gedmo;
  5. trait ProductPropertyTrait
  6. {
  7. use PriceTrait;
  8. /**
  9. * @ORM\Column(type="float", nullable=true)
  10. */
  11. protected $buyingPriceByRefUnit;
  12. /**
  13. * @ORM\Column(type="float", nullable=true)
  14. */
  15. protected $priceByRefUnit;
  16. /**
  17. * @ORM\Column(type="float", nullable=true)
  18. */
  19. protected $quantity;
  20. /**
  21. * @ORM\Column(type="float", nullable=true)
  22. */
  23. protected $availableQuantity;
  24. /**
  25. * @ORM\Column(type="float", nullable=true)
  26. */
  27. protected $availableQuantityDefault;
  28. /**
  29. * @ORM\Column(type="string", length=255, nullable=true)
  30. */
  31. protected $propertyExpirationDate;
  32. /**
  33. * @ORM\Column(type="float", nullable=true)
  34. */
  35. protected $weight;
  36. public function getBuyingPriceByRefUnit(): ?float
  37. {
  38. return $this->buyingPriceByRefUnit;
  39. }
  40. public function setBuyingPriceByRefUnit(?float $buyingPriceByRefUnit): self
  41. {
  42. $this->buyingPriceByRefUnit = $buyingPriceByRefUnit;
  43. return $this;
  44. }
  45. public function getPriceByRefUnit(): ?float
  46. {
  47. return $this->priceByRefUnit;
  48. }
  49. public function setPriceByRefUnit(?float $priceByRefUnit): self
  50. {
  51. $this->priceByRefUnit = $priceByRefUnit;
  52. return $this;
  53. }
  54. public function getQuantity(): ?float
  55. {
  56. return $this->quantity;
  57. }
  58. public function setQuantity(?float $quantity): self
  59. {
  60. $this->quantity = $quantity;
  61. return $this;
  62. }
  63. public function getAvailableQuantity(): ?float
  64. {
  65. return $this->availableQuantity;
  66. }
  67. public function setAvailableQuantity(?float $availableQuantity): self
  68. {
  69. $this->availableQuantity = $availableQuantity;
  70. return $this;
  71. }
  72. public function getAvailableQuantityDefault(): ?float
  73. {
  74. return $this->availableQuantityDefault;
  75. }
  76. public function setAvailableQuantityDefault(?float $availableQuantityDefault): self
  77. {
  78. $this->availableQuantityDefault = $availableQuantityDefault;
  79. return $this;
  80. }
  81. public function getPropertyExpirationDate(): ?string
  82. {
  83. return $this->propertyExpirationDate;
  84. }
  85. public function setPropertyExpirationDate(?string $propertyExpirationDate): self
  86. {
  87. $this->propertyExpirationDate = $propertyExpirationDate;
  88. return $this;
  89. }
  90. public function getWeight(): ?float
  91. {
  92. return $this->weight;
  93. }
  94. public function setWeight(?float $weight): self
  95. {
  96. $this->weight = $weight;
  97. return $this;
  98. }
  99. }