ConsoleCommand
abstract class ConsoleCommand extends Command
Extends Command class and provides $input and $output as instance variables of their respective classes. Also contains helper for returning an instance of the FrameworkQuestion class.
Traits
Wrapper class for InputInterface functions.
Properties
| protected InputInterface | $input | The Symfony InputInterface object. |
|
| protected OutputInterface | $output | The Symfony OutputInterface object. |
Methods
int
execute(InputInterface $input, OutputInterface $output)
Implements execute from parent class.
int
handle()
Executes logic for command.
question()
Returns instance of the FrameworkQuestion class.
Details
in
ConsoleIO at line 16
mixed
getArgument(mixed $argument)
Wrapper for InputInterface::getArgument function.
in
ConsoleIO at line 26
mixed
getOption(mixed $option)
Wrapper for InputInterface::getOption function.
in
ConsoleIO at line 36
bool
hasOption(string $name)
Wrapper for InputInterface::hasOption function.
at line 39
protected int
execute(InputInterface $input, OutputInterface $output)
Implements execute from parent class.
at line 50
abstract protected int
handle()
Executes logic for command.
at line 57
protected FrameworkQuestion
question()
Returns instance of the FrameworkQuestion class.