Interface Yiisoft\Yii\AuthClient\StateStorage\StateStorageInterface
| Implemented by | Yiisoft\Yii\AuthClient\StateStorage\DummyStateStorage, Yiisoft\Yii\AuthClient\StateStorage\SessionStateStorage |
|---|
StateStorageInterface is an interface for Auth client state storage.
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.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| get() | Returns the state variable value with the variable name. | Yiisoft\Yii\AuthClient\StateStorage\StateStorageInterface |
| remove() | Removes a state variable. | Yiisoft\Yii\AuthClient\StateStorage\StateStorageInterface |
| set() | Adds a state variable. | Yiisoft\Yii\AuthClient\StateStorage\StateStorageInterface |
Method Details
Returns the state variable value with the variable name.
If the variable does not exist, the $defaultValue will be returned.
| public abstract mixed get ( string $key ) | ||
| $key | string |
The variable name |
| return | mixed |
The variable value, or |
|---|---|---|
public function get(string $key): mixed;
Signup or Login in order to comment.