Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

40 lines
1.0KB

  1. <?php
  2. namespace Lc\CaracoleBundle\Model\Reminder;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Lc\CaracoleBundle\Doctrine\Extension\FilterMerchantInterface;
  5. use Lc\CaracoleBundle\Doctrine\Extension\FilterSectionInterface;
  6. use Lc\CaracoleBundle\Model\Merchant\MerchantInterface;
  7. use Lc\CaracoleBundle\Model\Section\SectionInterface;
  8. use Lc\SovBundle\Model\Reminder\ReminderModel as SovReminderModel;
  9. /**
  10. * @ORM\MappedSuperclass()
  11. */
  12. abstract class ReminderModel extends SovReminderModel implements FilterMerchantInterface, FilterSectionInterface
  13. {
  14. /**
  15. * @ORM\ManyToOne(targetEntity="Lc\CaracoleBundle\Model\Merchant\MerchantInterface")
  16. * @ORM\JoinColumn(nullable=false)
  17. */
  18. protected $merchant;
  19. /**
  20. * @ORM\ManyToOne(targetEntity="Lc\CaracoleBundle\Model\Section\SectionInterface")
  21. */
  22. protected $section;
  23. public function getSection(): ?SectionInterface
  24. {
  25. return $this->section;
  26. }
  27. public function setSection(?SectionInterface $section): self
  28. {
  29. $this->section = $section;
  30. return $this;
  31. }
  32. }