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.

PointSaleSectionFactory.php 692B

123456789101112131415161718192021222324
  1. <?php
  2. namespace Lc\CaracoleBundle\Factory\PointSale;
  3. use App\Entity\PointSale\PointSaleSection;
  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. $pointSaleSection = new PointSaleSection();
  13. $pointSaleSection->setPointSale($pointSale);
  14. $pointSaleSection->setSection($section);
  15. return $pointSaleSection;
  16. }
  17. }