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.

ReductionTrait.php 2.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <?php
  2. namespace Lc\ShopBundle\Model;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Lc\ShopBundle\Context\StatusInterface;
  6. trait ReductionTrait
  7. {
  8. /**
  9. * @ORM\Column(type="datetime", nullable=true)
  10. */
  11. protected $dateStart;
  12. /**
  13. * @ORM\Column(type="datetime", nullable=true)
  14. */
  15. protected $dateEnd;
  16. /**
  17. * @ORM\Column(type="float", nullable=true)
  18. */
  19. protected $value;
  20. /**
  21. * @ORM\Column(type="string", length=20, nullable=true)
  22. */
  23. protected $unit;
  24. /**
  25. * @ORM\Column(type="string", length=20, nullable=true)
  26. */
  27. protected $behaviorTaxRate;
  28. public function getDateStart(): ?\DateTimeInterface
  29. {
  30. return $this->dateStart;
  31. }
  32. public function setDateStart(?\DateTimeInterface $dateStart): self
  33. {
  34. $this->dateStart = $dateStart;
  35. return $this;
  36. }
  37. public function getDateEnd(): ?\DateTimeInterface
  38. {
  39. return $this->dateEnd;
  40. }
  41. public function setDateEnd(?\DateTimeInterface $dateEnd): self
  42. {
  43. $this->dateEnd = $dateEnd;
  44. return $this;
  45. }
  46. public function getValue(): ?float
  47. {
  48. return $this->value;
  49. }
  50. public function setValue(?float $value): self
  51. {
  52. $this->value = $value;
  53. return $this;
  54. }
  55. public function getUnit(): ?string
  56. {
  57. return $this->unit;
  58. }
  59. public function setUnit(?string $unit): self
  60. {
  61. $this->unit = $unit;
  62. return $this;
  63. }
  64. public function getBehaviorTaxRate(): ?string
  65. {
  66. return $this->behaviorTaxRate;
  67. }
  68. public function setBehaviorTaxRate(?string $behaviorTaxRate): self
  69. {
  70. $this->behaviorTaxRate = $behaviorTaxRate;
  71. return $this;
  72. }
  73. }