Documentation

CLICommand extends Command
in package

FinalYes
Tags
author

Ramone Burrell ramone@ramoneburrell.com

since

Version 0.1.0

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

Methods

__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

__get()

public __get(string $property) : mixed
Parameters
$property : string

extends()

public extends(ReflectionClass $reflector) : bool
Parameters
$reflector : ReflectionClass
Return values
bool

getCommand()

Gets a string representation of this command

public getCommand() : string|null
Return values
string|null

getOutput()

public getOutput() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|null

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
ReflectionClass

programExists()

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

setCommand()

Sets the string representation of this command instance

private setCommand(string $command) : mixed
Parameters
$command : string

        
On this page

Search results