Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

ProductPropertyTrait.php 2.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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 setBuyingPriceByRefUnit(?float $buyingPriceByRefUnit): self
  37. {
  38. $this->buyingPriceByRefUnit = $buyingPriceByRefUnit;
  39. return $this;
  40. }
  41. public function getPriceByRefUnit(): ?float
  42. {
  43. return $this->priceByRefUnit;
  44. }
  45. public function setPriceByRefUnit(?float $priceByRefUnit): self
  46. {
  47. $this->priceByRefUnit = $priceByRefUnit;
  48. return $this;
  49. }
  50. public function getQuantity(): ?float
  51. {
  52. return $this->quantity;
  53. }
  54. public function setQuantity(?float $quantity): self
  55. {
  56. $this->quantity = $quantity;
  57. return $this;
  58. }
  59. public function getAvailableQuantity(): ?float
  60. {
  61. return $this->availableQuantity;
  62. }
  63. public function setAvailableQuantity(?float $availableQuantity): self
  64. {
  65. $this->availableQuantity = $availableQuantity;
  66. return $this;
  67. }
  68. public function getAvailableQuantityDefault(): ?float
  69. {
  70. return $this->availableQuantityDefault;
  71. }
  72. public function setAvailableQuantityDefault(?float $availableQuantityDefault): self
  73. {
  74. $this->availableQuantityDefault = $availableQuantityDefault;
  75. return $this;
  76. }
  77. public function getPropertyExpirationDate(): ?string
  78. {
  79. return $this->propertyExpirationDate;
  80. }
  81. public function setPropertyExpirationDate(?string $propertyExpirationDate): self
  82. {
  83. $this->propertyExpirationDate = $propertyExpirationDate;
  84. return $this;
  85. }
  86. }