SunnyCashCouponService
in package
Class SunnyCashCouponService
Table of Contents
- $couponRepository : SunnyCashCouponRepositoryInterface
- __construct() : mixed
- SunnyCashService constructor.
- getCoupon() : SunnyCashCoupon
- Gets a coupon by its ID.
- getCouponQuantity() : int
- Gets the total number of available SunnyCash coupons.
- getCoupons() : SunnyCashCouponCollection
- Gets all SunnyCash coupons.
Properties
$couponRepository
protected
SunnyCashCouponRepositoryInterface
$couponRepository
Methods
__construct()
SunnyCashService constructor.
public
__construct(SunnyCashCouponRepositoryInterface $couponRepository) : mixed
Parameters
- $couponRepository : SunnyCashCouponRepositoryInterface
Return values
mixed —getCoupon()
Gets a coupon by its ID.
public
getCoupon(IdType $id) : SunnyCashCoupon
Parameters
- $id : IdType
Return values
SunnyCashCoupon —getCouponQuantity()
Gets the total number of available SunnyCash coupons.
public
getCouponQuantity() : int
Return values
int —getCoupons()
Gets all SunnyCash coupons.
public
getCoupons(IntType $limit, IntType $offset) : SunnyCashCouponCollection