Symfony\Component\Console\Input\InputArgument::__construct
Constructor.
Signature
public function __construct(string
$name,
[integer
$mode = null,
[string
$description = '',
[mixed
$default = null]]] )
Parameters
$name
— string- The argument name
$mode
— integer- The argument mode: self::REQUIRED or self::OPTIONAL
$description
— string- A description text
$default
— mixed- The default value (for self::OPTIONAL mode only)
Errors/Exceptions
-
InvalidArgumentException
- When argument mode is not valid