12 namespace Symfony\Component\Console\Input;
47 $mode = self::OPTIONAL;
49 throw new \InvalidArgumentException(sprintf(
'Argument mode "%s" is not valid.',
$mode));
76 return self::REQUIRED === (self::REQUIRED &
$this->mode);
86 return self::IS_ARRAY === (self::IS_ARRAY &
$this->mode);
98 if (self::REQUIRED === $this->mode && null !==
$default) {
99 throw new \LogicException(
'Cannot set a default value except for InputArgument::OPTIONAL mode.');
106 throw new \LogicException(
'A default value for an array argument must be an array.');