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
704B

  1. <?php
  2. namespace Lc\CaracoleBundle\Factory\Product;
  3. use App\Entity\Product\ProductFamily;
  4. use Lc\CaracoleBundle\Factory\MerchantFactoryTrait;
  5. use Lc\CaracoleBundle\Factory\SectionFactoryTrait;
  6. use Lc\CaracoleBundle\Model\Product\ProductFamilyInterface;
  7. use Lc\SovBundle\Factory\AbstractFactory;
  8. class ProductFamilyFactory extends AbstractFactory implements ProductFamilyFactoryInterface
  9. {
  10. use MerchantFactoryTrait;
  11. use SectionFactoryTrait;
  12. public function create(): ProductFamilyInterface
  13. {
  14. $productFamily = new ProductFamily();
  15. $productFamily->setMerchant($this->merchant);
  16. $productFamily->setSection($this->section);
  17. return $productFamily;
  18. }
  19. }