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.

33 lines
812B

  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\Model\Merchant\MerchantInterface;
  6. use Lc\SovBundle\Model\Newsletter\NewsletterModel as SovNewsletterModel;
  7. /**
  8. * @ORM\MappedSuperclass()
  9. */
  10. abstract class NewsletterModel extends SovNewsletterModel implements FilterMerchantInterface
  11. {
  12. /**
  13. * @ORM\ManyToOne(targetEntity="Lc\CaracoleBundle\Model\Merchant\MerchantInterface", inversedBy="newsletters")
  14. */
  15. protected $merchant;
  16. public function getMerchant(): ?MerchantInterface
  17. {
  18. return $this->merchant;
  19. }
  20. public function setMerchant(?MerchantInterface $merchant): self
  21. {
  22. $this->merchant = $merchant;
  23. return $this;
  24. }
  25. }