您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

MerchantSettingModel.php 859B

123456789101112131415161718192021222324252627282930
  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
  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. }