Skip to contentwebsign-dev/sillbeam-core · v0.3.0
SillbeamModule
\Sillbeam\Core\Module\Attribute · class
Methods (1)
\Sillbeam\Core\Module\Attribute\SillbeamModule::__construct()Creates descriptor metadata; does not load or activate referenced classes.
public function __construct(
public ?string $id = null,
public string $description = '',
public array $dependencies = [],
)
- Element kind
- method
- Declaring type
- \Sillbeam\Core\Module\Attribute\SillbeamModule
- PHPDoc metadata
- Name
- param
- Description
- descriptor classes of direct dependencies; IDs are not accepted
- Type
- list<class-string>
- Variable
- dependencies
- 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
- dependencies
- Type
- list<class-string>
- Description
- descriptor classes of direct dependencies; IDs are not accepted
- 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\Module\Attribute\SillbeamModule::$dependencies- Element kind
- property
- Declaring type
- \Sillbeam\Core\Module\Attribute\SillbeamModule
- Visibility
- public
- Type
- array
- Default value
- []
\Sillbeam\Core\Module\Attribute\SillbeamModule::$description- Element kind
- property
- Declaring type
- \Sillbeam\Core\Module\Attribute\SillbeamModule
- Visibility
- public
- Type
- string
- Default value
- ''
\Sillbeam\Core\Module\Attribute\SillbeamModule::$id- Element kind
- property
- Declaring type
- \Sillbeam\Core\Module\Attribute\SillbeamModule
- Visibility
- public
- Type
- ?string
- Default value
- null