public function dispatchCartOnEmptyEvent(CartInterface $cart)
    {
        $this->eventDispatcher->dispatch(
            ElcodiCartEvents::CART_ONEMPTY,
            new CartOnEmptyEvent($cart)
        );

        return $this;
    }
public function dispatchCartOnEmptyEvent(CartInterface $cart)
    {
        $this->eventDispatcher->dispatch(
            ElcodiCartEvents::CART_ONEMPTY,
            new CartOnEmptyEvent($cart)
        );

        return $this;
    }
public function dispatchCartOnEmptyEvent ( CartInterface $ cart ) { $ this -> eventDispatcher -> dispatch ( ElcodiCartEvents :: CART_ONEMPTY , new CartOnEmptyEvent ( $ cart ) ) ; return $ this ; }
Dispatch cart event when a cart ois emptied.

@param CartInterface $cart Cart

@return $this Self object
Dispatch cart event when a cart ois emptied .