public function notifyCouponUsage(CouponInterface $coupon)
    {
        $couponUsedEvent = new CouponOnUsedEvent($coupon);

        $this->eventDispatcher->dispatch(
            ElcodiCouponEvents::COUPON_USED,
            $couponUsedEvent
        );

        return $this;
    }
public function notifyCouponUsage(CouponInterface $coupon)
    {
        $couponUsedEvent = new CouponOnUsedEvent($coupon);

        $this->eventDispatcher->dispatch(
            ElcodiCouponEvents::COUPON_USED,
            $couponUsedEvent
        );

        return $this;
    }
public function notifyCouponUsage ( CouponInterface $ coupon ) { $ couponUsedEvent = new CouponOnUsedEvent ( $ coupon ) ; $ this -> eventDispatcher -> dispatch ( ElcodiCouponEvents :: COUPON_USED , $ couponUsedEvent ) ; return $ this ; }
Notify Coupon usage.

@param CouponInterface $coupon Coupon used

@return $this Self object
Notify Coupon usage .