public function dispatchCartCouponOnRemoveEvent(
        CartCouponInterface $cartCoupon
    ) {
        $cart = $cartCoupon->getCart();
        $coupon = $cartCoupon->getCoupon();

        $event = new CartCouponOnRemoveEvent($cart, $coupon);
        $event->setCartCoupon($cartCoupon);
        $this->eventDispatcher->dispatch(
            ElcodiCartCouponEvents::CART_COUPON_ONREMOVE,
            $event
        );
    }
public function dispatchCartCouponOnRemoveEvent(
        CartCouponInterface $cartCoupon
    ) {
        $cart = $cartCoupon->getCart();
        $coupon = $cartCoupon->getCoupon();

        $event = new CartCouponOnRemoveEvent($cart, $coupon);
        $event->setCartCoupon($cartCoupon);
        $this->eventDispatcher->dispatch(
            ElcodiCartCouponEvents::CART_COUPON_ONREMOVE,
            $event
        );
    }
public function dispatchCartCouponOnRemoveEvent ( CartCouponInterface $ cartCoupon ) { $ cart = $ cartCoupon -> getCart ( ) ; $ coupon = $ cartCoupon -> getCoupon ( ) ; $ event = new CartCouponOnRemoveEvent ( $ cart , $ coupon ) ; $ event -> setCartCoupon ( $ cartCoupon ) ; $ this -> eventDispatcher -> dispatch ( ElcodiCartCouponEvents :: CART_COUPON_ONREMOVE , $ event ) ; }
Dispatch event just before a coupon is removed from a Cart.

@param CartCouponInterface $cartCoupon CartCoupon to remove

@return $this Self object
Dispatch event just before a coupon is removed from a Cart .