Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

QualityLabelFactory.php 535B

123456789101112131415161718192021
  1. <?php
  2. namespace Lc\CaracoleBundle\Factory\Product;
  3. use App\Entity\Product\QualityLabel;
  4. use Lc\CaracoleBundle\Container\Product\QualityLabelContainer;
  5. use Lc\CaracoleBundle\Model\Product\QualityLabelInterface;
  6. use Lc\SovBundle\Factory\AbstractFactory;
  7. class QualityLabelFactory extends AbstractFactory
  8. {
  9. public function create(): QualityLabelInterface
  10. {
  11. $class = QualityLabelContainer::getEntityFqcn();
  12. $qualityLabel = new $class;
  13. $qualityLabel->setStatus(1);
  14. return $qualityLabel;
  15. }
  16. }