Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

ReminderModel.php 1.3KB

3 lat temu
3 lat temu
3 lat temu
3 lat temu
3 lat temu
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. }