\AclUser\EntityRole

Role

Summary

Methods
Properties
Constants
setId()
getId()
setName()
getName()
setDescription()
getDescription()
getActive()
setParent()
getParent()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$id
$name
$description
$active
$parent
N/A

Properties

$id

$id : integer

Type

integer — The database id of this role.

$name

$name : string

Type

string — The readable name of the role

$description

$description : string

Type

string — Short description that explains the overall usage of the role.

$active

$active : boolean

Type

boolean — whether the role is active

$parent

$parent : \AclUser\Entity\Role

Type

\AclUser\Entity\Role — The single parent (Role entity) from which this role inherits

Methods

setId()

setId(integer  $id) : $this

Set id (used for unit testing)

Parameters

integer $id

the id of the dummy user

Returns

$this

getId()

getId() : integer

Get id

Returns

integer

setName()

setName(string  $name) : \AclUser\Entity\Role

Set name

Parameters

string $name

Returns

\AclUser\Entity\Role

getName()

getName() : string

Get name

Returns

string

setDescription()

setDescription(string  $description) : \AclUser\Entity\Role

Set description

Parameters

string $description

Returns

\AclUser\Entity\Role

getDescription()

getDescription() : string

Get description

Returns

string

getActive()

getActive() : boolean

Get active

Returns

boolean