GenerationResult
The output of a generator: the files to write, how to verify the produced class, and any advice.
GenerationResult::__construct()
public function __construct(array $files, ?string $verifyKind = null, ?string $verifyTarget = null, ?Milpa\DevTools\Make\Flavor $flavor = null, ?string $guidance = null):Parameters
| Name | Type | Description |
|---|---|---|
| $files | list<PlannedFile> | files this generator actually plans to write |
| $verifyKind | ('controller' | 'entity' | null) | |
| $verifyTarget | ?string | |
| $flavor | (Flavor | null) | the {@see Flavor} this generation targeted — both `ControllerGenerator` and `EntityGenerator` set this (as of F3); pass it straight through to {@see VerifyRunner::run()} |
| $guidance | (string | null) | advisory text for a manual step the caller should print (e.g. a route snippet to hand-add, or a reminder to register a freshly generated plugin in `config/plugins.php`) — never a substitute for a file in `$files`, only ever additional |