SunnyCashCouponReaderInterface
in
Interface SunnyCashCouponReaderInterface
Table of Contents
- getAllCoupons() : SunnyCashCouponCollection
- Gets all available SunnyCash coupons.
- getCouponById() : SunnyCashCoupon
- Gets a coupon by its ID.
- getCouponQuantity() : int
- Gets the total number of coupons from the cache file
Methods
getAllCoupons()
Gets all available SunnyCash coupons.
public
getAllCoupons(IntType $limit, IntType $offset) : SunnyCashCouponCollection
Parameters
Tags
Return values
SunnyCashCouponCollection —getCouponById()
Gets a coupon by its ID.
public
getCouponById(IdType $id) : SunnyCashCoupon
Parameters
- $id : IdType
Tags
Return values
SunnyCashCoupon —getCouponQuantity()
Gets the total number of coupons from the cache file
public
getCouponQuantity() : int