Interface RoleInterface

Summary

Fully Qualified Name: Laminas\Permissions\Rbac\RoleInterface

Description

Methods

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

Method Details

addChild()

Add a child.

Parameter Name Type Description
$child

Returns:

addParent()

Add a parent.

Parameter Name Type Description
$parent

Returns:

addPermission()

Add permission to the role.

Parameter Name Type Description
$name

Returns:

getChildren()

Get the children roles.

Returns: \RoleInterface[]

getName()

Get the name of the role.

Returns:

getParents()

Get the parent roles.

Returns: \RoleInterface[]

hasPermission()

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

Parameter Name Type Description
$name

Returns:

Top