public function dispatchOrderLineOnCreatedEvent(
        OrderInterface $order,
        CartLineInterface $cartLine,
        OrderLineInterface $orderLine
    ) {
        $orderLineOnCreatedEvent = new OrderLineOnCreatedEvent(
            $order,
            $cartLine,
            $orderLine
        );

        $this->eventDispatcher->dispatch(
            ElcodiCartEvents::ORDERLINE_ONCREATED,
            $orderLineOnCreatedEvent
        );

        return $this;
    }
public function dispatchOrderLineOnCreatedEvent(
        OrderInterface $order,
        CartLineInterface $cartLine,
        OrderLineInterface $orderLine
    ) {
        $orderLineOnCreatedEvent = new OrderLineOnCreatedEvent(
            $order,
            $cartLine,
            $orderLine
        );

        $this->eventDispatcher->dispatch(
            ElcodiCartEvents::ORDERLINE_ONCREATED,
            $orderLineOnCreatedEvent
        );

        return $this;
    }
public function dispatchOrderLineOnCreatedEvent ( OrderInterface $ order , CartLineInterface $ cartLine , OrderLineInterface $ orderLine ) { $ orderLineOnCreatedEvent = new OrderLineOnCreatedEvent ( $ order , $ cartLine , $ orderLine ) ; $ this -> eventDispatcher -> dispatch ( ElcodiCartEvents :: ORDERLINE_ONCREATED , $ orderLineOnCreatedEvent ) ; return $ this ; }
Event dispatched when a Cart is being converted to an OrderLine.

@param OrderInterface     $order     Order
@param CartLineInterface  $cartLine  CartLine
@param OrderLineInterface $orderLine OrderLine

@return $this Self object
Event dispatched when a Cart is being converted to an OrderLine .