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
722B

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