Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

34 rindas
918B

  1. <?php
  2. namespace Lc\CaracoleBundle\Model\Newsletter;
  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\Newsletter\NewsletterModel as SovNewsletterModel;
  9. /**
  10. * @ORM\MappedSuperclass()
  11. */
  12. abstract class NewsletterModel extends SovNewsletterModel implements FilterSectionInterface
  13. {
  14. /**
  15. * @ORM\ManyToOne(targetEntity="Lc\CaracoleBundle\Model\Section\SectionInterface", inversedBy="newsletters")
  16. */
  17. protected $section;
  18. public function getSection(): ?SectionInterface
  19. {
  20. return $this->section;
  21. }
  22. public function setSection(?SectionInterface $section): self
  23. {
  24. $this->section = $section;
  25. return $this;
  26. }
  27. }