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
| Name | Type | Description |
|---|---|---|
| $id | string | |
| $label | string | |
| $permissions | list<Permission> | the permissions this role grants |
| $metadata | array<string, mixed> | non-authoritative extra detail |