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

55 lines
1.3KB

  1. <?php
  2. namespace Lc\CaracoleBundle\Model\Site;
  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\Site\PageModel as SovPageModel;
  9. /**
  10. * @ORM\MappedSuperclass()
  11. */
  12. abstract class PageModel extends SovPageModel implements FilterMerchantInterface, FilterSectionInterface
  13. {
  14. /**
  15. * @ORM\ManyToOne(targetEntity="Lc\CaracoleBundle\Model\Merchant\MerchantInterface", inversedBy="pages")
  16. * @ORM\JoinColumn(nullable=false)
  17. */
  18. protected $merchant;
  19. /**
  20. * @ORM\ManyToOne(targetEntity="Lc\CaracoleBundle\Model\Section\SectionInterface", inversedBy="pages")
  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. }