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

22 行
470B

  1. <?php
  2. namespace Lc\CaracoleBundle\Factory\Merchant;
  3. use Lc\CaracoleBundle\Container\Merchant\MerchantContainer;
  4. use Lc\CaracoleBundle\Model\Merchant\MerchantInterface;
  5. use Lc\SovBundle\Factory\AbstractFactory;
  6. class MerchantFactory extends AbstractFactory
  7. {
  8. public function create(): MerchantInterface
  9. {
  10. $class = MerchantContainer::getEntityFqcn();
  11. $merchant = new $class;
  12. $merchant->setStatus(1);
  13. return $merchant;
  14. }
  15. }