Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

31 rinda
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. }