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.

21 lines
427B

  1. <?php
  2. namespace Lc\CaracoleBundle\Factory\Product;
  3. use Lc\CaracoleBundle\Container\Product\ProductContainer;
  4. use Lc\CaracoleBundle\Model\Product\ProductInterface;
  5. use Lc\SovBundle\Factory\AbstractFactory;
  6. class ProductFactory extends AbstractFactory
  7. {
  8. public function create(): ProductInterface
  9. {
  10. $class = ProductContainer::getEntityFqcn();
  11. $product = new $class;
  12. return $product;
  13. }
  14. }