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.

31 lines
1.0KB

  1. <?php
  2. namespace Lc\CaracoleBundle\Factory\Product;
  3. use App\Entity\Product\ProductCategory;
  4. use App\Entity\Product\ProductFamilySectionProperty;
  5. use Lc\CaracoleBundle\Context\MerchantContextTrait;
  6. use Lc\CaracoleBundle\Context\SectionContextTrait;
  7. use Lc\CaracoleBundle\Model\Merchant\MerchantInterface;
  8. use Lc\CaracoleBundle\Model\Product\ProductCategoryInterface;
  9. use Lc\CaracoleBundle\Model\Product\ProductFamilyInterface;
  10. use Lc\CaracoleBundle\Model\Section\SectionInterface;
  11. use Lc\SovBundle\Factory\AbstractFactory;
  12. class ProductFamilySectionPropertyFactory extends AbstractFactory
  13. {
  14. public function create(SectionInterface $section, ProductFamilyInterface $productFamily): ProductFamilySectionProperty
  15. {
  16. $productFamilySectionProperty = new ProductFamilySectionProperty();
  17. $productFamilySectionProperty->setSection($section);
  18. $productFamilySectionProperty->setProductFamily($productFamily);
  19. $productFamilySectionProperty->setStatus(0);
  20. return $productFamilySectionProperty;
  21. }
  22. }