Explore Server Side Testing SDK for PHP

StorageFacade implements StorageFacadeInterface

Table of Contents

Interfaces

StorageFacadeInterface

Properties

$experimentStorage  : ExperimentStorageInterface
$settingsStorage  : SettingsStorageInterface
$userStorage  : UserStorageInterface
$websiteStorage  : WebsiteStorageInterface

Methods

__construct()  : mixed
findUser()  : User|null
getExperiments()  : array<string|int, mixed>
getLastExperimentsFetchTime()  : int|null
Gets the timestamp of the last time experiments were fetched
getSettings()  : array<string|int, mixed>
getWebsiteId()  : string|null
saveExperiments()  : bool
saveLastExperimentsFetchTime()  : bool
Sets the timestamp of the last time experiments were fetched
saveSettings()  : bool
saveUser()  : bool
saveWebsiteId()  : bool

Properties

Methods

findUser()

public findUser(string $userId) : User|null
Parameters
$userId : string
Return values
User|null

getExperiments()

public getExperiments() : array<string|int, mixed>
Return values
array<string|int, mixed>

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

getSettings()

public getSettings() : array<string|int, mixed>
Return values
array<string|int, mixed>

getWebsiteId()

public getWebsiteId() : string|null
Return values
string|null

saveExperiments()

public saveExperiments(array<string|int, mixed> $experiments) : bool
Parameters
$experiments : array<string|int, mixed>
Return values
bool

saveLastExperimentsFetchTime()

Sets the timestamp of the last time experiments were fetched

public saveLastExperimentsFetchTime(int $timestamp) : bool
Parameters
$timestamp : int
Return values
bool

saveSettings()

public saveSettings(array<string|int, mixed> $settings) : bool
Parameters
$settings : array<string|int, mixed>
Return values
bool

saveWebsiteId()

public saveWebsiteId(string $websiteId) : bool
Parameters
$websiteId : string
Return values
bool

        
On this page

Search results