Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

PointSaleFactory.php 610B

il y a 3 ans
il y a 3 ans
il y a 3 ans
il y a 3 ans
il y a 3 ans
il y a 3 ans
12345678910111213141516171819202122232425
  1. <?php
  2. namespace Lc\CaracoleBundle\Factory\PointSale;
  3. use Lc\CaracoleBundle\Container\PointSale\PointSaleContainer;
  4. use Lc\CaracoleBundle\Model\Merchant\MerchantInterface;
  5. use Lc\CaracoleBundle\Model\PointSale\PointSaleInterface;
  6. use Lc\SovBundle\Factory\AbstractFactory;
  7. class PointSaleFactory extends AbstractFactory
  8. {
  9. public function create(MerchantInterface $merchant): PointSaleInterface
  10. {
  11. $class = PointSaleContainer::getEntityFqcn();
  12. $pointSale = new $class;
  13. $pointSale->addMerchant($merchant);
  14. $pointSale->setStatus(1);
  15. return $pointSale;
  16. }
  17. }