Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

26 lines
767B

  1. <?php
  2. namespace Lc\CaracoleBundle\Factory\PointSale;
  3. use Lc\CaracoleBundle\Container\PointSale\PointSaleSectionContainer;
  4. use Lc\CaracoleBundle\Model\PointSale\PointSaleInterface;
  5. use Lc\CaracoleBundle\Model\PointSale\PointSaleSectionInterface;
  6. use Lc\CaracoleBundle\Model\Section\SectionInterface;
  7. use Lc\SovBundle\Factory\AbstractFactory;
  8. class PointSaleSectionFactory extends AbstractFactory
  9. {
  10. public function create(PointSaleInterface $pointSale, SectionInterface $section): PointSaleSectionInterface
  11. {
  12. $class = PointSaleSectionContainer::getEntityFqcn();
  13. $pointSaleSection = new $class;
  14. $pointSaleSection->setPointSale($pointSale);
  15. $pointSaleSection->setSection($section);
  16. return $pointSaleSection;
  17. }
  18. }