GeneratorInterface
in
Table of Contents
Methods
- buildChanges() : array<string|int, CodeChange>
- Build the required changes based on the given paramters
- evaluateParamters() : void
- Pass parameters that will be used for change generation.
- getExpectedArguments() : array<string, array<string, mixed>>
- Returns expected arguments for the code generator
- getType() : string
- Returns the generators type identifier, must be unique
Methods
buildChanges()
Build the required changes based on the given paramters
public
buildChanges(array<string, mixed> $parameters) : array<string|int, CodeChange>
Parameters
- $parameters : array<string, mixed>
Return values
array<string|int, CodeChange>evaluateParamters()
Pass parameters that will be used for change generation.
public
evaluateParamters(array<string, mixed> &$parameters[, CLImate|null $cli = null ]) : void
The generator can then validate and complete them by promting the user
Parameters
- $parameters : array<string, mixed>
- $cli : CLImate|null = null
getExpectedArguments()
Returns expected arguments for the code generator
public
getExpectedArguments() : array<string, array<string, mixed>>
Return values
array<string, array<string, mixed>>getType()
Returns the generators type identifier, must be unique
public
getType() : string