trait ConsoleIO

Wrapper class for InputInterface functions.

Methods

mixed
getArgument(mixed $argument)

Wrapper for InputInterface::getArgument function.

mixed
getOption(mixed $option)

Wrapper for InputInterface::getOption function.

bool
hasOption(string $name)

Wrapper for InputInterface::hasOption function.

Details

at line 16
mixed getArgument(mixed $argument)

Wrapper for InputInterface::getArgument function.

Parameters

mixed $argument

The argument.

Return Value

mixed

The value for the argument.

at line 26
mixed getOption(mixed $option)

Wrapper for InputInterface::getOption function.

Parameters

mixed $option

The option.

Return Value

mixed

The value for the option.

at line 36
bool hasOption(string $name)

Wrapper for InputInterface::hasOption function.

Parameters

string $name

The name for the option.

Return Value

bool

True if exists, otherwise false.