public function dispatchCartCouponOnCheckEvent(
        CartInterface $cart,
        CouponInterface $coupon
    ) {
        $event = new CartCouponOnCheckEvent($cart, $coupon);
        $this->eventDispatcher->dispatch(
            ElcodiCartCouponEvents::CART_COUPON_ONCHECK,
            $event
        );
    }
public function dispatchCartCouponOnCheckEvent(
        CartInterface $cart,
        CouponInterface $coupon
    ) {
        $event = new CartCouponOnCheckEvent($cart, $coupon);
        $this->eventDispatcher->dispatch(
            ElcodiCartCouponEvents::CART_COUPON_ONCHECK,
            $event
        );
    }
public function dispatchCartCouponOnCheckEvent ( CartInterface $ cart , CouponInterface $ coupon ) { $ event = new CartCouponOnCheckEvent ( $ cart , $ coupon ) ; $ this -> eventDispatcher -> dispatch ( ElcodiCartCouponEvents :: CART_COUPON_ONCHECK , $ event ) ; }
Dispatch event to check a coupon applies to a Cart.

@param CartInterface   $cart   Cart where the coupon should apply
@param CouponInterface $coupon Coupon to be checked

@return $this Self object
Dispatch event to check a coupon applies to a Cart .