116 行
2.4KB

  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. /**
  29. * @ORM\Column(type="boolean")
  30. */
  31. protected $permanent;
  32. public function getDateStart(): ?\DateTimeInterface
  33. {
  34. return $this->dateStart;
  35. }
  36. public function setDateStart(?\DateTimeInterface $dateStart): self
  37. {
  38. $this->dateStart = $dateStart;
  39. return $this;
  40. }
  41. public function getDateEnd(): ?\DateTimeInterface
  42. {
  43. return $this->dateEnd;
  44. }
  45. public function setDateEnd(?\DateTimeInterface $dateEnd): self
  46. {
  47. $this->dateEnd = $dateEnd;
  48. return $this;
  49. }
  50. public function getValue(): ?float
  51. {
  52. return $this->value;
  53. }
  54. public function setValue(?float $value): self
  55. {
  56. $this->value = $value;
  57. return $this;
  58. }
  59. public function getUnit(): ?string
  60. {
  61. return $this->unit;
  62. }
  63. public function setUnit(?string $unit): self
  64. {
  65. $this->unit = $unit;
  66. return $this;
  67. }
  68. public function getBehaviorTaxRate(): ?string
  69. {
  70. return $this->behaviorTaxRate;
  71. }
  72. public function setBehaviorTaxRate(?string $behaviorTaxRate): self
  73. {
  74. $this->behaviorTaxRate = $behaviorTaxRate;
  75. return $this;
  76. }
  77. public function getPermanent(): ?bool
  78. {
  79. return $this->permanent;
  80. }
  81. public function setPermanent(bool $permanent): self
  82. {
  83. $this->permanent = $permanent;
  84. return $this;
  85. }
  86. }