ReductionPropertyTrait.php 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php
  2. namespace Lc\ShopBundle\Model;
  3. use Doctrine\ORM\Mapping as ORM;
  4. trait ReductionPropertyTrait
  5. {
  6. /**
  7. * @ORM\Column(type="datetime", nullable=true)
  8. */
  9. protected $dateStart;
  10. /**
  11. * @ORM\Column(type="datetime", nullable=true)
  12. */
  13. protected $dateEnd;
  14. /**
  15. * @ORM\Column(type="boolean")
  16. */
  17. protected $permanent;
  18. public function getDateStart(): ?\DateTimeInterface
  19. {
  20. return $this->dateStart;
  21. }
  22. public function setDateStart(?\DateTimeInterface $dateStart): self
  23. {
  24. $this->dateStart = $dateStart;
  25. return $this;
  26. }
  27. public function getDateEnd(): ?\DateTimeInterface
  28. {
  29. return $this->dateEnd;
  30. }
  31. public function setDateEnd(?\DateTimeInterface $dateEnd): self
  32. {
  33. $this->dateEnd = $dateEnd;
  34. return $this;
  35. }
  36. public function getPermanent(): ?bool
  37. {
  38. return $this->permanent;
  39. }
  40. public function setPermanent(bool $permanent): self
  41. {
  42. $this->permanent = $permanent;
  43. return $this;
  44. }
  45. }