Explore Server Side Testing SDK for PHP

ArrayStorageDriver implements StorageDriverInterface

Example implementation of a storage driver

Table of Contents

Interfaces

StorageDriverInterface

Properties

$storage  : array<string|int, mixed>

Methods

get()  : mixed
Retrieve stored data
save()  : bool
Store data

Properties

Methods

get()

Retrieve stored data

public get(string $key) : mixed
Parameters
$key : string

Data key

Tags
inheritDoc
Return values
mixed

Stored data

save()

Store data

public save(string $key, mixed $data) : bool
Parameters
$key : string

Data key

$data : mixed

Data to be stored

Tags
inheritDoc
Return values
bool

True if storage was successful


        
On this page

Search results