OptionSetFileStorage
in package
implements
Storable
Class FileStorage
Tags
Table of Contents
Interfaces
- Storable
- Interface Storable
Properties
- $path : string
Methods
- __construct() : mixed
- getList() : array<string|int, mixed>
- Get list with optionsets
- persist() : bool
- Persist a item to the storage
- remove() : mixed
- Remove item.
- retrieve() : array<string|int, mixed>
- Retrieve a item from the storage
Properties
$path
protected
string
$path
Methods
__construct()
public
__construct(string $path) : mixed
Parameters
- $path : string
getList()
Get list with optionsets
public
getList() : array<string|int, mixed>
Return values
array<string|int, mixed>persist()
Persist a item to the storage
public
persist( $name, YamlSerializable $data) : bool
Parameters
- $name :
- $data : YamlSerializable
Return values
boolremove()
Remove item.
public
remove( $name) : mixed
Parameters
retrieve()
Retrieve a item from the storage
public
retrieve(string $name) : array<string|int, mixed>
Parameters
- $name : string