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.

27 lines
714B

  1. <?php
  2. namespace Lc\CaracoleBundle\Factory\Order;
  3. use App\Entity\Order\OrderShop;
  4. use Lc\CaracoleBundle\Factory\MerchantFactoryTrait;
  5. use Lc\CaracoleBundle\Factory\SectionFactoryTrait;
  6. use Lc\CaracoleBundle\Model\Merchant\MerchantInterface;
  7. use Lc\CaracoleBundle\Model\Order\OrderShopInterface;
  8. use Lc\CaracoleBundle\Model\Section\SectionInterface;
  9. use Lc\SovBundle\Factory\AbstractFactory;
  10. class OrderShopFactory extends AbstractFactory
  11. {
  12. public function create(MerchantInterface $merchant, SectionInterface $section): OrderShopInterface
  13. {
  14. $orderShop = new OrderShop();
  15. $orderShop->setMerchant($merchant);
  16. $orderShop->setSection($section);
  17. return $orderShop;
  18. }
  19. }