Identity deprecated
class Identity implements IIdentity
deprecated
Properties
| string|int | $id | ||
| list<string> | $roles | ||
| array<string,mixed> | $data |
Methods
__construct(string|int $id, string|array|null $roles = null, iterable|null $data = null)
No description
string|int
getId()
Returns the ID of user.
array
getRoles()
Returns a list of roles that the user is a member of.
array
getData()
Returns user data.
void
__set(string $key, mixed $value)
Sets user data value.
mixed
__get(string $key)
Returns user data value.
bool
__isset(string $key)
No description
Details
at line 34
__construct(string|int $id, string|array|null $roles = null, iterable|null $data = null)
No description
at line 47
Identity
setId(string|int $id)
Sets the ID of user.
at line 57
string|int
getId()
Returns the ID of user.
at line 67
Identity
setRoles(array $roles)
Sets a list of roles that the user is a member of.
at line 78
array
getRoles()
Returns a list of roles that the user is a member of.
at line 88
array
getData()
Returns user data.
at line 97
void
__set(string $key, mixed $value)
Sets user data value.
at line 111
mixed
__get(string $key)
Returns user data value.
at line 123
bool
__isset(string $key)
No description