package Default

 Methods

Add a child.

addChild(\Zend\Permissions\Rbac\RoleInterface|string $child) : \Zend\Permissions\Rbac\Role

Parameters

$child

\Zend\Permissions\Rbac\RoleInterfacestring

Returns

\Zend\Permissions\Rbac\Role

Add permission to the role.

addPermission($name) : \Zend\Permissions\Rbac\RoleInterface

Parameters

$name

Returns

\Zend\Permissions\Rbac\RoleInterface

Get the name of the role.

getName() : string

Returns

string

getParent()

getParent() : null | \Zend\Permissions\Rbac\RoleInterface

Returns

null\Zend\Permissions\Rbac\RoleInterface

Checks if a permission exists for this role or any child roles.

hasPermission(string $name) : boolean

Parameters

$name

string

Returns

boolean

setParent()

setParent(\Zend\Permissions\Rbac\RoleInterface $parent) : \Zend\Permissions\Rbac\RoleInterface

Parameters

$parent

\Zend\Permissions\Rbac\RoleInterface

Returns

\Zend\Permissions\Rbac\RoleInterface