private function canBeUsed(CouponInterface $coupon)
    {
        $count = $coupon->getCount();

        if ($count === 0) {
            return true;
        }

        if ($coupon->getUsed() < $count) {
            return true;
        }

        return false;
    }
private function canBeUsed(CouponInterface $coupon)
    {
        $count = $coupon->getCount();

        if ($count === 0) {
            return true;
        }

        if ($coupon->getUsed() < $count) {
            return true;
        }

        return false;
    }
private function canBeUsed ( CouponInterface $ coupon ) { $ count = $ coupon -> getCount ( ) ; if ( $ count === 0 ) { return true ; } if ( $ coupon -> getUsed ( ) < $ count ) { return true ; } return false ; }
Check if a coupon can be currently used.

@param CouponInterface $coupon

@return bool
Check if a coupon can be currently used .