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.

22 line
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. }