class Identity extends Object implements IIdentity

Default implementation of IIdentity.

Properties

mixed $id
array $roles

Methods

__construct($id, $roles = NULL, $data = NULL)

No description

setId($id)

Sets the ID of user.

mixed
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($key, $value)

Sets user data value.

mixed
__get($key)

Returns user data value.

bool
__isset($key)

Is property defined?

void
__unset($name)

Removes property.

Details

at line 36
__construct($id, $roles = NULL, $data = NULL)

No description

Parameters

$id
$roles
$data

at line 49
Identity setId($id)

Sets the ID of user.

Parameters

$id

Return Value

Identity

at line 60
mixed getId()

Returns the ID of user.

Return Value

mixed

at line 71
Identity setRoles(array $roles)

Sets a list of roles that the user is a member of.

Parameters

array $roles

Return Value

Identity

at line 82
array getRoles()

Returns a list of roles that the user is a member of.

Return Value

array

at line 92
array getData()

Returns a user data.

Return Value

array

at line 104
void __set($key, $value)

Sets user data value.

Parameters

$key
$value

Return Value

void

at line 120
mixed __get($key)

Returns user data value.

Parameters

$key

Return Value

mixed

at line 136
bool __isset($key)

Is property defined?

Parameters

$key

Return Value

bool

at line 148
void __unset($name)

Removes property.

Parameters

$name

Return Value

void

Exceptions

MemberAccessException