Zend\Permissions\Acl\Acl::inheritsRole
Returns true if and only if $role inherits from $inherit
Both parameters may be either a Role or a Role identifier. If $onlyParents is true, then $role must inherit directly from $inherit in order to return true. By default, this method looks through the entire inheritance DAG to determine whether $role inherits from $inherit through its ancestor Roles.
Signature
public function inheritsRole(RoleInterface|string
$role,
[RoleInterface|string
$inherit = false,
[bool
$onlyParents = false]] )
Parameters
$role
— object
$inherit
— object
$onlyParents
— object
Returns
- bool