Skip to content
docsv0.9.0

Role

A named bundle of {@see Permission}s. Roles are what a {@see PermissionCatalog} declares and what an {@see Actor} holds by id; the resolver expands them into grants. Immutable by construction.

Role::__construct()

public function __construct(string $id, string $label, array $permissions, array $metadata = []):

Parameters

Parameters of __construct()
NameTypeDescription
$idstring
$labelstring
$permissionslist<Permission>the permissions this role grants
$metadataarray<string, mixed>non-authoritative extra detail