Kernel
in package
FinalYes
Class responsible for executing commands
Table of Contents
Properties
Methods
- __construct() : mixed
- execute() : int
- Executes a command with given arguments
- showHelp() : void
- Outputs to console all available commands
Properties
$output
private
ConsoleOutput
$output
$registry read-only
private
CommandRegistry
$registry
Methods
__construct()
public
__construct(CommandRegistry $registry) : mixed
Parameters
- $registry : CommandRegistry
execute()
Executes a command with given arguments
public
execute(array<string|int, mixed> $argv) : int
Parameters
- $argv : array<string|int, mixed>
Return values
intshowHelp()
Outputs to console all available commands
private
showHelp() : void