您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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