MemoryStorage
in package
implements
StorageInterface
Memory based non-persistent storage for authenticated user record.
Table of Contents
Interfaces
- StorageInterface
- Describes the methods that any class representing an Auth data storage should comply with.
Properties
- $_redirectUrl : array<string|int, mixed>|string|null
- Redirect URL.
- $_user : ArrayAccess|array<string|int, mixed>|null
- User record.
Methods
- delete() : void
- Delete user record.
- read() : ArrayAccess|array<string|int, mixed>|null
- Read user record.
- redirectUrl() : array<string|int, mixed>|string|null
- Get/set redirect URL.
- write() : void
- Write user record.
Properties
$_redirectUrl
Redirect URL.
protected
array<string|int, mixed>|string|null
$_redirectUrl
$_user
User record.
protected
ArrayAccess|array<string|int, mixed>|null
$_user
Methods
delete()
Delete user record.
public
delete() : void
Tags
read()
Read user record.
public
read() : ArrayAccess|array<string|int, mixed>|null
Tags
Return values
ArrayAccess|array<string|int, mixed>|nullredirectUrl()
Get/set redirect URL.
public
redirectUrl([mixed $url = null ]) : array<string|int, mixed>|string|null
Parameters
- $url : mixed = null
-
Redirect URL. If
null
returns current URL. Iffalse
deletes currently set URL.
Tags
Return values
array<string|int, mixed>|string|nullwrite()
Write user record.
public
write(mixed $user) : void
Parameters
- $user : mixed
-
array or \ArrayAccess User record.