WebsiteStorage
in package
implements
WebsiteStorageInterface
Table of Contents
Interfaces
Constants
- LAST_EXPERIMENTS_FETCH_TIME_KEY = 'last_experiments_fetch_time'
- WEBSITE_ID_KEY = 'website_id'
Properties
Methods
- __construct() : mixed
- getLastExperimentsFetchTime() : int|null
- Gets the timestamp of the last time experiments were fetched
- getWebsiteId() : string|null
- saveLastExperimentsFetchTime() : bool
- Sets the timestamp of the last time experiments were fetched
- saveWebsiteId() : bool
Constants
LAST_EXPERIMENTS_FETCH_TIME_KEY
public
mixed
LAST_EXPERIMENTS_FETCH_TIME_KEY
= 'last_experiments_fetch_time'
WEBSITE_ID_KEY
public
mixed
WEBSITE_ID_KEY
= 'website_id'
Properties
$driver
private
StorageDriverInterface
$driver
Methods
__construct()
public
__construct(StorageDriverInterface $driver) : mixed
Parameters
- $driver : StorageDriverInterface
getLastExperimentsFetchTime()
Gets the timestamp of the last time experiments were fetched
public
getLastExperimentsFetchTime() : int|null
Return values
int|null —Timestamp or null if not set
getWebsiteId()
public
getWebsiteId() : string|null
Return values
string|nullsaveLastExperimentsFetchTime()
Sets the timestamp of the last time experiments were fetched
public
saveLastExperimentsFetchTime(int $timestamp) : bool
Parameters
- $timestamp : int
Return values
boolsaveWebsiteId()
public
saveWebsiteId(string $websiteId) : bool
Parameters
- $websiteId : string