Identity deprecated
class Identity implements IIdentity
deprecated
Properties
| string|int | $id | ||
| array | $roles | ||
| array | $data |
Methods
__construct($id, $roles = null, iterable|null $data = null)
No description
mixed
getId()
Returns the ID of user.
array
getRoles()
Returns a list of roles that the user is a member of.
array
getData()
Returns a user data.
void
__set(string $key, $value)
Sets user data value.
mixed
__get(string $key)
Returns user data value.
bool
__isset(string $key)
No description
Details
at line 28
__construct($id, $roles = null, iterable|null $data = null)
No description
at line 41
Identity
setId(string|int $id)
Sets the ID of user.
at line 51
mixed
getId()
Returns the ID of user.
at line 60
Identity
setRoles(array $roles)
Sets a list of roles that the user is a member of.
at line 70
array
getRoles()
Returns a list of roles that the user is a member of.
at line 79
array
getData()
Returns a user data.
at line 88
void
__set(string $key, $value)
Sets user data value.
at line 102
mixed
__get(string $key)
Returns user data value.
at line 114
bool
__isset(string $key)
No description