Exemplo n.º 1
0
 /**
  * CheckoutService constructor.
  * @param array $config
  */
 public function __construct(array $config)
 {
     parent::__construct($config);
     $orderDetail = new OrderDetailService($config);
     $orderCustomer = new OrderCustomerService($config);
     $orderProducts = new OrderProductsService($config);
     $order = new OrderService($config);
     $order->setOrderDetail($orderDetail);
     $order->setOrderCustomer($orderCustomer);
     $order->setOrderProducts($orderProducts);
     $this->setOrder($order);
 }