public function dispatchCartLineOnAddEvent(
        CartInterface $cart,
        CartLineInterface $cartLine
    ) {
        $this->eventDispatcher->dispatch(
            ElcodiCartEvents::CARTLINE_ONADD,
            new CartLineOnAddEvent(
                $cart,
                $cartLine
            )
        );

        return $this;
    }
public function dispatchCartLineOnAddEvent(
        CartInterface $cart,
        CartLineInterface $cartLine
    ) {
        $this->eventDispatcher->dispatch(
            ElcodiCartEvents::CARTLINE_ONADD,
            new CartLineOnAddEvent(
                $cart,
                $cartLine
            )
        );

        return $this;
    }
public function dispatchCartLineOnAddEvent ( CartInterface $ cart , CartLineInterface $ cartLine ) { $ this -> eventDispatcher -> dispatch ( ElcodiCartEvents :: CARTLINE_ONADD , new CartLineOnAddEvent ( $ cart , $ cartLine ) ) ; return $ this ; }
Dispatch cartLine event when is added into cart.

@param CartInterface     $cart     Cart
@param CartLineInterface $cartLine CartLine

@return $this Self object
Dispatch cartLine event when is added into cart .