Methods (1)
\Sillbeam\Core\Project\Attribute\SillbeamProject::__construct()Creates descriptor metadata; does not load or activate referenced classes.
public function __construct(
public ?string $id = null,
public string $description = '',
public array $modules = [],
)
- Element kind
- method
- Declaring type
- \Sillbeam\Core\Project\Attribute\SillbeamProject
- PHPDoc metadata
- Name
- param
- Description
- shared-module descriptor classes selected by this Project; dependencies expand during compilation
- Type
- list<class-string>
- Variable
- modules
- Name
- param
- Description
- explicit lowercase ID matching [a-z][a-z0-9-]*, or null to derive it from the descriptor class
- Type
- string|null
- Variable
- id
- Name
- param
- Description
- human-readable catalog description
- Type
- string
- Variable
- description
- Name
- throws
- Description
- if an explicit ID has invalid syntax
- Type
- \InvalidArgumentException
- Visibility
- public
- Parameters
- Name
- id
- Type
- string|null
- Description
- explicit lowercase ID matching [a-z][a-z0-9-]*, or null to derive it from the descriptor class
- Default value
- null
- By reference
- No
- Variadic
- No
- Name
- description
- Type
- string
- Description
- human-readable catalog description
- Default value
- ''
- By reference
- No
- Variadic
- No
- Name
- modules
- Type
- list<class-string>
- Description
- shared-module descriptor classes selected by this Project; dependencies expand during compilation
- Default value
- []
- By reference
- No
- Variadic
- No
- Return value
- Type
- mixed
- Exceptions
- Type
- \InvalidArgumentException
- Description
- if an explicit ID has invalid syntax
- abstract
- No
- final
- No
- static
- No
Properties (3)
\Sillbeam\Core\Project\Attribute\SillbeamProject::$description- Element kind
- property
- Declaring type
- \Sillbeam\Core\Project\Attribute\SillbeamProject
- Visibility
- public
- Type
- string
- Default value
- ''
\Sillbeam\Core\Project\Attribute\SillbeamProject::$id- Element kind
- property
- Declaring type
- \Sillbeam\Core\Project\Attribute\SillbeamProject
- Visibility
- public
- Type
- ?string
- Default value
- null
\Sillbeam\Core\Project\Attribute\SillbeamProject::$modules- Element kind
- property
- Declaring type
- \Sillbeam\Core\Project\Attribute\SillbeamProject
- Visibility
- public
- Type
- array
- Default value
- []