class GeneratePackageCommand extends AbstractCommand (View source)

Constants

EXIT_OK

EXIT_NOT_OK

GENERATOR_OPTIONS_CONFIG_OPTION

PROPER_USER_CONFIGURATION

DEFAULT_CONFIGURATION_FILE

Properties

protected InputInterface $input from AbstractCommand
protected OutputInterface $output from AbstractCommand
protected Generator $generator
protected GeneratorOptions $generatorOptions

Methods

configure()

No description

execute(InputInterface $input, OutputInterface $output)

No description

bool
canExecute()

No description

writeLn(string|array $messages, int $type = OutputInterface::OUTPUT_NORMAL)

No description

string|string[]|bool|null
getOptionValue(string $name)

No description

getGenerator()

No description

setGenerator(Generator $generator)

No description

boolean|mixed
formatOptionValue(mixed $optionValue)

No description

array
formatArrayForConsole(array $array)

Utility method to return readable array based on "key: value"

string|string[]|bool|null
string|null
string[]

Details

protected configure()

See also

\WsdlToPhp\PackageGenerator\Command\AbstractCommand::configure()

protected execute(InputInterface $input, OutputInterface $output)

Parameters

InputInterface $input
OutputInterface $output

See also

Symfony\Component\Console\Command\Command::execute()

protected bool canExecute()

Return Value

bool

protected writeLn(string|array $messages, int $type = OutputInterface::OUTPUT_NORMAL)

Parameters

string|array $messages
int $type

protected string|string[]|bool|null getOptionValue(string $name)

Parameters

string $name

Return Value

string|string[]|bool|null

Generator getGenerator()

Return Value

Generator

protected GeneratePackageCommand setGenerator(Generator $generator)

Parameters

Generator $generator

Return Value

GeneratePackageCommand

protected GeneratePackageCommand initGenerator()

Return Value

GeneratePackageCommand

protected array getPackageGenerationCommandLineOptions()

Return Value

array

protected GeneratePackageCommand initGeneratorOptions()

Return Value

GeneratePackageCommand

protected boolean|mixed formatOptionValue(mixed $optionValue)

Parameters

mixed $optionValue

Return Value

boolean|mixed

protected array formatArrayForConsole(array $array)

Utility method to return readable array based on "key: value"

Parameters

array $array

Return Value

array

string|string[]|bool|null getGeneratorOptionsConfigOption()

Return Value

string|string[]|bool|null

string|null resolveGeneratorOptionsConfigPath()

Return Value

string|null

string[] getGeneratorOptionsPossibilities()

Return Value

string[]