PHP Интерфейс yii\authclient\StateStorageInterface

Herein 'state' means a named variable, which is persistent between different requests. Note: in order to function correctly state storage should vary depending on application session, e.g. different web users should not share state with the same name.
С версии: 2.1
Автор: Paul Klimov ([email protected])
Показать файл Открыть проект

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

Метод Описание
get ( string $key ) : mixed Returns the state variable value with the variable name.
remove ( string $key ) : boolean Removes a state variable.
set ( string $key, mixed $value ) Adds a state variable.

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

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

If the variable does not exist, the $defaultValue will be returned.
public get ( string $key ) : mixed
$key string the variable name
Результат mixed the variable value, or `null` if the variable does not exist.

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

Removes a state variable.
public remove ( string $key ) : boolean
$key string the name of the variable to be removed
Результат boolean success.

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

If the specified name already exists, the old value will be overwritten.
public set ( string $key, mixed $value )
$key string variable name
$value mixed variable value