SimpleIdentity
class SimpleIdentity implements IIdentity
Default implementation of IIdentity.
Properties
string|int | $id | ||
array | $roles | ||
array | $data |
Methods
__construct($id, $roles = null, iterable|null $data = null)
No description
setId(string|int $id)
Sets the ID of user.
string|int
getId()
Returns the ID of user.
setRoles(array $roles)
Sets a list of roles that the user is a member of.
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
array
__serialize()
No description
void
__unserialize(array $data)
No description
Details
at line 36
__construct($id, $roles = null, iterable|null $data = null)
No description
at line 49
SimpleIdentity
setId(string|int $id)
Sets the ID of user.
at line 59
string|int
getId()
Returns the ID of user.
at line 68
SimpleIdentity
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 87
array
getData()
Returns a user data.
at line 96
void
__set(string $key, $value)
Sets user data value.
at line 110
mixed
__get(string $key)
Returns user data value.
at line 121
bool
__isset(string $key)
No description
at line 127
array
__serialize()
No description
at line 137
void
__unserialize(array $data)
No description
Traits
Strict class for better experience.