CLICommand
extends Command
in package
FinalYes
Tags
Table of Contents
Properties
- $command : string
- A string representation of this command
- $parameters : array<string|int, mixed>
- A list of parameters that were passes as arguments in this command
- $exit_code : int
- $hashCode : int
- $hashCounter : int
- $output : array<string|int, mixed>
- $program : string
- The name of the program to be executed
Methods
- __call() : mixed
- __callStatic() : mixed
- __construct() : mixed
- __destruct() : mixed
- __get() : mixed
- __toString() : mixed
- exec() : mixed
- extends() : bool
- getCommand() : string|null
- Gets a string representation of this command
- getExitCode() : int|null
- getOutput() : array<string|int, mixed>|null
- getParameters() : array<string|int, mixed>
- getProgram() : string
- Gets the name of the program used in this command
- getReflection() : ReflectionClass
- programExists() : bool
- Determines whether or not a specific program exists
- init() : mixed
- setCommand() : mixed
- Sets the string representation of this command instance
Properties
$command
A string representation of this command
protected
string
$command
$parameters
A list of parameters that were passes as arguments in this command
protected
array<string|int, mixed>
$parameters
$exit_code
private
int
$exit_code
$hashCode
private
int
$hashCode
$hashCounter
private
static int
$hashCounter
= 0
$output
private
array<string|int, mixed>
$output
$program
The name of the program to be executed
private
string
$program
Methods
__call()
public
__call(string $method, array<string|int, mixed> $arguments) : mixed
Parameters
- $method : string
- $arguments : array<string|int, mixed>
Tags
__callStatic()
public
static __callStatic(mixed $method, array<string|int, mixed> $arguments) : mixed
Parameters
- $method : mixed
- $arguments : array<string|int, mixed>
__construct()
public
__construct(string $command) : mixed
Parameters
- $command : string
__destruct()
public
__destruct() : mixed
__get()
public
__get(string $property) : mixed
Parameters
- $property : string
__toString()
public
__toString() : mixed
exec()
public
exec() : mixed
extends()
public
extends(ReflectionClass $reflector) : bool
Parameters
- $reflector : ReflectionClass
Return values
boolgetCommand()
Gets a string representation of this command
public
getCommand() : string|null
Return values
string|nullgetExitCode()
public
getExitCode() : int|null
Return values
int|nullgetOutput()
public
getOutput() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|nullgetParameters()
public
getParameters() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>getProgram()
Gets the name of the program used in this command
public
getProgram() : string
Return values
string —The name of the program used in this command
getReflection()
public
getReflection() : ReflectionClass
Return values
ReflectionClassprogramExists()
Determines whether or not a specific program exists
public
static programExists(string $program) : bool
Parameters
- $program : string
-
The program to check if exists
Return values
bool —True if the program exists, false otherwise
init()
protected
init() : mixed
setCommand()
Sets the string representation of this command instance
private
setCommand(string $command) : mixed
Parameters
- $command : string