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.

OrderPaymentFactory.php 645B

pirms 3 gadiem
pirms 3 gadiem
pirms 3 gadiem
pirms 3 gadiem
pirms 3 gadiem
pirms 3 gadiem
1234567891011121314151617181920212223
  1. <?php
  2. namespace Lc\CaracoleBundle\Factory\Order;
  3. use App\Entity\Order\OrderPayment;
  4. use Lc\CaracoleBundle\Model\Order\OrderPaymentInterface;
  5. use Lc\CaracoleBundle\Model\Order\OrderShopInterface;
  6. use Lc\SovBundle\Factory\AbstractFactory;
  7. class OrderPaymentFactory extends AbstractFactory
  8. {
  9. public function create(OrderShopInterface $orderShop, string $meanPayment, float $amount): OrderPaymentInterface
  10. {
  11. $orderPayment = new OrderPayment();
  12. $orderPayment->setOrderShop($orderShop);
  13. $orderPayment->setMeanPayment($meanPayment);
  14. $orderPayment->setAmount($amount);
  15. return $orderPayment;
  16. }
  17. }