您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

PointSaleFactory.php 552B

3 年前
3 年前
3 年前
3 年前
3 年前
1234567891011121314151617181920212223
  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. public function create(MerchantInterface $merchant): PointSaleInterface
  11. {
  12. $pointSale = new PointSale();
  13. $pointSale->addMerchant($merchant);
  14. return $pointSale;
  15. }
  16. }