Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

130 lines
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. public function getBuyingPriceByRefUnit(): ?float
  33. {
  34. return $this->buyingPriceByRefUnit;
  35. }
  36. public function getBuyingPriceByRefUnitInherited(): ?float
  37. {
  38. return $this->getBuyingPriceByRefUnit();
  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 getPriceByRefUnitInherited(): ?float
  50. {
  51. return $this->getPriceByRefUnit();
  52. }
  53. public function setPriceByRefUnit(?float $priceByRefUnit): self
  54. {
  55. $this->priceByRefUnit = $priceByRefUnit;
  56. return $this;
  57. }
  58. public function getQuantity(): ?float
  59. {
  60. return $this->quantity;
  61. }
  62. public function setQuantity(?float $quantity): self
  63. {
  64. $this->quantity = $quantity;
  65. return $this;
  66. }
  67. public function getQuantityInherited(): ?float
  68. {
  69. return $this->getQuantity();
  70. }
  71. public function getAvailableQuantity(): ?float
  72. {
  73. return $this->availableQuantity;
  74. }
  75. public function setAvailableQuantity(?float $availableQuantity): self
  76. {
  77. $this->availableQuantity = $availableQuantity;
  78. return $this;
  79. }
  80. public function getAvailableQuantityDefault(): ?float
  81. {
  82. return $this->availableQuantityDefault;
  83. }
  84. public function setAvailableQuantityDefault(?float $availableQuantityDefault): self
  85. {
  86. $this->availableQuantityDefault = $availableQuantityDefault;
  87. return $this;
  88. }
  89. public function getPropertyExpirationDate(): ?string
  90. {
  91. return $this->propertyExpirationDate;
  92. }
  93. public function setPropertyExpirationDate(?string $propertyExpirationDate): self
  94. {
  95. $this->propertyExpirationDate = $propertyExpirationDate;
  96. return $this;
  97. }
  98. }