Identity
class Identity implements IIdentity
Default implementation of IIdentity.
Properties
mixed | $id | ||
array | $roles | ||
array | $data |
Methods
__construct($id, $roles = 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($key, $value)
Sets user data value.
mixed
__get($key)
Returns user data value.
bool
__isset($key)
No description
Details
at line 43
__construct($id, $roles = null, $data = null)
No description
at line 56
Identity
setId($id)
Sets the ID of user.
at line 67
mixed
getId()
Returns the ID of user.
at line 77
Identity
setRoles(array $roles)
Sets a list of roles that the user is a member of.
at line 88
array
getRoles()
Returns a list of roles that the user is a member of.
at line 98
array
getData()
Returns a user data.
at line 110
void
__set($key, $value)
Sets user data value.
at line 126
mixed
__get($key)
Returns user data value.
at line 141
bool
__isset($key)
No description
Traits
SmartObject