InputArgument::getDescription()

string getDescription() Returns the description text. Return Value string The description text

InputArgument::getDefault()

mixed getDefault() Returns the default value. Return Value mixed The default value

InputArgument

class InputArgument Represents a command line argument. Constants REQUIRED OPTIONAL IS_ARRAY Methods __construct(string $name, int $mode = null, string $description = '', mixed $default = null) Constructor. string getName() Returns the argument name. bool isRequired() Returns true if the argument is required. bool isArray() Returns true if the argument can take multiple values. setDefault(mixed $default = null) Sets the default value. mixed getDefau

Input::validate()

validate() Validates the input. Exceptions RuntimeException When not enough arguments are given

Input::setOption()

setOption(string $name, string|bool $value) Sets an option value by name. Parameters string $name The option name string|bool $value The option value Exceptions InvalidArgumentException When option given doesn't exist

Input::setInteractive()

setInteractive(bool $interactive) Sets the input interactivity. Parameters bool $interactive If the input should be interactive

Input::setArgument()

setArgument(string $name, string $value) Sets an argument value by name. Parameters string $name The argument name string $value The argument value Exceptions InvalidArgumentException When argument given doesn't exist

Input::isInteractive()

bool isInteractive() Is this input means interactive? Return Value bool

Input::hasOption()

bool hasOption(string $name) Returns true if an InputOption object exists by name. Parameters string $name The InputOption name Return Value bool true if the InputOption object exists, false otherwise

Input::hasArgument()

bool hasArgument(string|int $name) Returns true if an InputArgument object exists by name or position. Parameters string|int $name The InputArgument name or position Return Value bool true if the InputArgument object exists, false otherwise