interface CliInputInterface (View source)

Interface CliInputInterface

Methods

string
in()

Get a value from standard input.

mixed
get(string $name, mixed $default = null)

Gets a value from the input data.

set(string $name, mixed $value)

Sets a value

mixed
all()

Gets an array of values from the request.

mixed
getArgument(integer $offset, mixed $default = null)

getArgument

string
getCalledScript()

getCalledScript

Details

at line line 21
string in()

Get a value from standard input.

Return Value

string The input string from standard input.

at line line 33
mixed get(string $name, mixed $default = null)

Gets a value from the input data.

Parameters

string $name Name of the value to get.
mixed $default Default value to return if variable does not exist.

Return Value

mixed The filtered input value.

at line line 45
CliInputInterface set(string $name, mixed $value)

Sets a value

Parameters

string $name Name of the value to set.
mixed $value Value to assign to the input.

Return Value

CliInputInterface

at line line 54
mixed all()

Gets an array of values from the request.

Return Value

mixed The filtered input data.

at line line 64
mixed getArgument(integer $offset, mixed $default = null)

getArgument

Parameters

integer $offset
mixed $default

Return Value

mixed

at line line 71
string getCalledScript()

getCalledScript

Return Value

string