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.

34 line
680B

  1. <?php
  2. namespace Lc\ShopBundle\Model;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * @ORM\MappedSuperclass()
  6. */
  7. class Section extends AbstractDocumentEntity
  8. {
  9. /**
  10. * @ORM\Column(type="string", length=32)
  11. */
  12. protected $cycle;
  13. const SECTION_CYCLE_DAY = 'day' ;
  14. const SECTION_CYCLE_WEEK = 'week' ;
  15. const SECTION_CYCLE_MONTH = 'month' ;
  16. const SECTION_CYCLE_YEAR = 'year' ;
  17. public function getCycle(): ?string
  18. {
  19. return $this->cycle;
  20. }
  21. public function setCycle(string $cycle): self
  22. {
  23. $this->cycle = $cycle;
  24. return $this;
  25. }
  26. }