PHP Интерфейс Pantheon\Terminus\DataStore\DataStoreInterface

Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
get ( string $key ) : mixed Reads retrieves data from the store
has ( string $key ) : boolean Checks if a key is in the store
keys ( ) : array Return a list of all keys in the store.
remove ( string $key ) Remove value from the store
set ( string $key, mixed $data ) Saves a value with the given key

Описание методов

get() публичный Метод

Reads retrieves data from the store
public get ( string $key ) : mixed
$key string A key
Результат mixed The value fpr the given key or null.

has() публичный Метод

Checks if a key is in the store
public has ( string $key ) : boolean
$key string A key
Результат boolean Whether a value exists with the given key

keys() публичный Метод

Return a list of all keys in the store.
public keys ( ) : array
Результат array A list of keys

remove() публичный Метод

Remove value from the store
public remove ( string $key )
$key string A key

set() публичный Метод

Saves a value with the given key
public set ( string $key, mixed $data )
$key string A key
$data mixed Data to save to the store