RoleHierarchy
in package
implements
RoleHierarchyInterface
RoleHierarchy defines a role hierarchy.
Tags
Table of Contents
Interfaces
- RoleHierarchyInterface
- RoleHierarchyInterface is the interface for a role hierarchy.
Properties
- $map : array<string, array<int, string>>
- $hierarchy : array<string|int, mixed>
Methods
- __construct() : mixed
- getReachableRoleNames() : array<string|int, string>
- buildRoleMap() : mixed
Properties
$map
protected
array<string, array<int, string>>
$map
$hierarchy
private
array<string|int, mixed>
$hierarchy
Methods
__construct()
public
__construct(array<string, array<int, string>> $hierarchy) : mixed
Parameters
- $hierarchy : array<string, array<int, string>>
getReachableRoleNames()
public
getReachableRoleNames(array<string|int, mixed> $roles) : array<string|int, string>
Parameters
- $roles : array<string|int, mixed>
Return values
array<string|int, string>buildRoleMap()
protected
buildRoleMap() : mixed