ManagedGroup
in package
FinalYes
Declares that a group must exist, as part of a CONTRACT.md ยง27.6 manifest.
See ManagedRole for why the declarative layer wears an attribute in PHP.
Attributes
- #[Attribute]
- \Attribute::TARGET_CLASS | \Attribute::IS_REPEATABLE
Table of Contents
Properties
- $description : string
- $key : string
- $metadata : array<string|int, mixed>
- $name : string
- $roleKeys : array<string|int, mixed>
Methods
- __construct() : mixed
Properties
$description read-only
public
string
$description
= ''
$key read-only
public
string
$key
$metadata read-only
public
array<string|int, mixed>
$metadata
= []
$name read-only
public
string
$name
$roleKeys read-only
public
array<string|int, mixed>
$roleKeys
= []
Methods
__construct()
public
__construct(string $key, string $name[, string $description = '' ][, array<int, string> $roleKeys = [] ][, array<string, mixed> $metadata = [] ]) : mixed
Parameters
- $key : string
-
Manifest-local identity.
- $name : string
-
The group's name on the server.
- $description : string = ''
-
Human-readable description.
- $roleKeys : array<int, string> = []
-
KEYS of the roles this group carries.
- $metadata : array<string, mixed> = []
-
Free-form metadata.