GenerationContext
Everything a generator needs: the target plugin, the artifact name, CLI options, and repo root.
GenerationContext::__construct()
public function __construct(string $plugin, string $name, array $options, string $root):Parameters
| Name | Type | Description |
|---|---|---|
| $plugin | string | |
| $name | string | |
| $options | array<string, mixed> | |
| $root | string |
GenerationContext::option()
public function option(string $key): ?stringReads a CLI `--option` value; `null` when absent or not a string.
Parameters
| Name | Type | Description |
|---|---|---|
| $key | string |