phpDocumentor

SunnyCashCacheManager
in package
implements SunnyCashCacheManagerInterface

Class SunnyCashCacheManager

Interfaces, Classes and Traits

SunnyCashCacheManagerInterface
Interface SunnyCashCacheManagerInterface

Table of Contents

$couponFactory  : SunnyCashCouponFactory
$curl  : CurlRequest
$expirationStrategy  : SunnyCashExpirationStrategyInterface
$rootDirectory  : ExistingDirectory
__construct()  : mixed
SunnyCashCacheManager constructor.
checkAndPerformRefresh()  : mixed
Checks if the cache expired and refreshes it accordingly.
getJsonCoupons()  : string
Performs a curl request to SunnyCash to retrieve all coupon data in raw JSON format.
getModificationTime()  : mixed
refresh()  : mixed
refreshJsonCouponCache()  : mixed
refreshLogos()  : mixed
sortJsonCouponArray()  : mixed

Properties

Methods

checkAndPerformRefresh()

Checks if the cache expired and refreshes it accordingly.

public checkAndPerformRefresh() : mixed
Return values
mixed

getJsonCoupons()

Performs a curl request to SunnyCash to retrieve all coupon data in raw JSON format.

protected getJsonCoupons() : string
Tags
throws
SunnyCashConnectionErrorException

In case there is a connection error

Return values
string

All coupon data in raw JSON format

sortJsonCouponArray()

protected sortJsonCouponArray(array<string|int, mixed> $jsonCoupons) : mixed
Parameters
$jsonCoupons : array<string|int, mixed>
Return values
mixed

Search results