Input
class Input
Input.
Properties
protected ReaderInterface | $reader | Reader. | |
protected ArgvParser | $arguments | Arguments. |
Methods
string
read()
Reads and returns user input.
getArgumentParser()
Returns the argument parser.
array
getArguments()
Returns all the arguments passed to the script.
mixed
getArgument(int|string $name, mixed $default = null)
Returns the argument associated with the given name.
Details
at line 38
__construct(ReaderInterface $reader, ArgvParser $arguments)
Constructor.
at line 50
string
read()
Reads and returns user input.
at line 60
ArgvParser
getArgumentParser()
Returns the argument parser.
at line 70
array
getArguments()
Returns all the arguments passed to the script.
at line 82
mixed
getArgument(int|string $name, mixed $default = null)
Returns the argument associated with the given name.