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.

30 lines
885B

  1. <?php
  2. namespace Lc\CaracoleBundle\Model\Setting;
  3. use Lc\CaracoleBundle\Doctrine\Extension\FilterMerchantInterface;
  4. use Lc\CaracoleBundle\Model\Merchant\MerchantInterface;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Lc\SovBundle\Doctrine\EntityInterface;
  7. use Lc\SovBundle\Model\Setting\SettingModel as SovSettingModel;
  8. abstract class MerchantSettingModel extends SovSettingModel implements EntityInterface, FilterMerchantInterface, MerchantSettingInterface
  9. {
  10. /**
  11. * @ORM\ManyToOne(targetEntity="Lc\CaracoleBundle\Model\Merchant\MerchantInterface", inversedBy="settings")
  12. * @ORM\JoinColumn(nullable=false)
  13. */
  14. protected $merchant;
  15. public function getMerchant(): MerchantInterface
  16. {
  17. return $this->merchant;
  18. }
  19. public function setMerchant(MerchantInterface $merchant): self
  20. {
  21. $this->merchant = $merchant;
  22. return $this;
  23. }
  24. }