Fully Qualified Name: | Laminas\Permissions\Rbac\RoleInterface |
Name | Description | Defined By |
---|---|---|
addChild() | Add a child. | RoleInterface |
addParent() | Add a parent. | RoleInterface |
addPermission() | Add permission to the role. | RoleInterface |
getChildren() | Get the children roles. | RoleInterface |
getName() | Get the name of the role. | RoleInterface |
getParents() | Get the parent roles. | RoleInterface |
hasPermission() | Checks if a permission exists for this role or any child roles. | RoleInterface |
Add a child.
Parameter Name | Type | Description |
---|---|---|
$child |
Returns:
Add a parent.
Parameter Name | Type | Description |
---|---|---|
$parent |
Returns:
Add permission to the role.
Parameter Name | Type | Description |
---|---|---|
$name |
Returns:
Get the children roles.
Returns: \RoleInterface[]
Get the name of the role.
Returns:
Get the parent roles.
Returns: \RoleInterface[]
Checks if a permission exists for this role or any child roles.
Parameter Name | Type | Description |
---|---|---|
$name |
Returns: