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.

OrderStatusHistoryFactory.php 794B

pirms 3 gadiem
pirms 3 gadiem
pirms 3 gadiem
pirms 3 gadiem
pirms 3 gadiem
pirms 3 gadiem
pirms 3 gadiem
123456789101112131415161718192021222324
  1. <?php
  2. namespace Lc\CaracoleBundle\Factory\Order;
  3. use App\Entity\Order\OrderStatusHistory;
  4. use Lc\CaracoleBundle\Model\Order\OrderShopInterface;
  5. use Lc\CaracoleBundle\Model\Order\OrderStatusHistoryInterface;
  6. use Lc\CaracoleBundle\Model\Order\OrderStatusHistoryModel;
  7. use Lc\SovBundle\Factory\AbstractFactory;
  8. class OrderStatusHistoryFactory extends AbstractFactory
  9. {
  10. public function create(OrderShopInterface $orderShop, string $status, string $origin = OrderStatusHistoryModel::ORIGIN_USER): OrderStatusHistoryInterface
  11. {
  12. $orderStatusHistory = new OrderStatusHistory();
  13. $orderStatusHistory->setOrderShop($orderShop);
  14. $orderStatusHistory->setOrderStatus($status);
  15. $orderStatusHistory->setOrigin($origin);
  16. return $orderStatusHistory;
  17. }
  18. }