Methods

Add permission to the role.

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

Parameters

$name

Returns

Get the name of the role.

getName() : string

Returns

string

getParent()

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

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

hasPermission(string $name) : bool

Parameters

$name

string

Returns

bool