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.

PointSaleFactory.php 561B

3 år sedan
3 år sedan
3 år sedan
3 år sedan
3 år sedan
123456789101112131415161718192021222324
  1. <?php
  2. namespace Lc\CaracoleBundle\Factory\PointSale;
  3. use App\Entity\PointSale\PointSale;
  4. use Lc\CaracoleBundle\Factory\MerchantFactoryTrait;
  5. use Lc\CaracoleBundle\Model\Merchant\MerchantInterface;
  6. use Lc\CaracoleBundle\Model\PointSale\PointSaleInterface;
  7. use Lc\SovBundle\Factory\AbstractFactory;
  8. class PointSaleFactory extends AbstractFactory
  9. {
  10. use MerchantFactoryTrait;
  11. public function create(): PointSaleInterface
  12. {
  13. $pointSale = new PointSale();
  14. $pointSale->addMerchant($this->merchant);
  15. return $pointSale;
  16. }
  17. }