class Argument (View source)

Methods

void
__construct()

Argument Constructor

mixed
getParameter(string $key, mixed $default = null)

Retrieves a parameter

getParameters()

Get the collection of parameter

string|null
getTarget()

Retrieves the target value

string|null
getCommand()

Retrieves the command value

string|null
getAction()

Retrieves the command action

array
getTrash()

Get the trash content

bool
hasTrash()

Check if bad parameter have been input

bool
readline(string $message)

Read ligne

Details

void __construct()

Argument Constructor

Return Value

void

mixed getParameter(string $key, mixed $default = null)

Retrieves a parameter

Parameters

string $key
mixed $default

Return Value

mixed

Collection getParameters()

Get the collection of parameter

Return Value

Collection

string|null getTarget()

Retrieves the target value

Return Value

string|null

string|null getCommand()

Retrieves the command value

Return Value

string|null

string|null getAction()

Retrieves the command action

Return Value

string|null

array getTrash()

Get the trash content

Return Value

array

bool hasTrash()

Check if bad parameter have been input

Return Value

bool

bool readline(string $message)

Read ligne

Parameters

string $message

Return Value

bool