InputArgument
class InputArgument
Represents a command line argument.
Constants
REQUIRED |
|
OPTIONAL |
|
IS_ARRAY |
|
Methods
__construct(string $name, int $mode = null, string $description = '', string|string[]|null $default = null)
No description
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(string|string[]|null $default = null)
Sets the default value.
string|string[]|null
getDefault()
Returns the default value.
string
getDescription()
Returns the description text.