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.

62 satır
1.2KB

  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. }