選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

24 行
696B

  1. <?php
  2. namespace Lc\CaracoleBundle\Factory\Product;
  3. use Lc\CaracoleBundle\Container\Product\ProductCategoryContainer;
  4. use Lc\CaracoleBundle\Model\Product\ProductCategoryInterface;
  5. use Lc\CaracoleBundle\Model\Section\SectionInterface;
  6. use Lc\SovBundle\Factory\AbstractFactory;
  7. class ProductCategoryFactory extends AbstractFactory
  8. {
  9. public function create(SectionInterface $section): ProductCategoryInterface
  10. {
  11. $class = ProductCategoryContainer::getEntityFqcn();
  12. $productCategory = new $class;
  13. $productCategory->setSection($section);
  14. $productCategory->setSaleStatus(true);
  15. $productCategory->setStatus(1);
  16. return $productCategory;
  17. }
  18. }