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.

52 lines
1.3KB

  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 getMerchant(): ?MerchantInterface
  24. {
  25. return $this->merchant;
  26. }
  27. public function setMerchant(?MerchantInterface $merchant): self
  28. {
  29. $this->merchant = $merchant;
  30. return $this;
  31. }
  32. public function getSection(): ?SectionInterface
  33. {
  34. return $this->section;
  35. }
  36. public function setSection(?SectionInterface $section): self
  37. {
  38. $this->section = $section;
  39. return $this;
  40. }
  41. }