public function dispatchCartCouponOnRejectedEvent(
        CartInterface $cart,
        CouponInterface $coupon
    ) {
        $event = new CartCouponOnRejectedEvent($cart, $coupon);
        $this->eventDispatcher->dispatch(
            ElcodiCartCouponEvents::CART_COUPON_ONREJECTED,
            $event
        );
    }
public function dispatchCartCouponOnRejectedEvent(
        CartInterface $cart,
        CouponInterface $coupon
    ) {
        $event = new CartCouponOnRejectedEvent($cart, $coupon);
        $this->eventDispatcher->dispatch(
            ElcodiCartCouponEvents::CART_COUPON_ONREJECTED,
            $event
        );
    }
public function dispatchCartCouponOnRejectedEvent ( CartInterface $ cart , CouponInterface $ coupon ) { $ event = new CartCouponOnRejectedEvent ( $ cart , $ coupon ) ; $ this -> eventDispatcher -> dispatch ( ElcodiCartCouponEvents :: CART_COUPON_ONREJECTED , $ event ) ; }
Dispatch event when a coupon application is rejected.

@param CartInterface   $cart   Cart where the coupon should be rejected
@param CouponInterface $coupon Rejected coupon

@return $this Self object
Dispatch event when a coupon application is rejected .