function InputOption::isNegatable
Returns true if the option allows passing a negated variant.
Return value
bool true if mode is self::VALUE_NEGATABLE, false otherwise
3 calls to InputOption::isNegatable()
- InputOption::equals in vendor/
symfony/ console/ Input/ InputOption.php - Checks whether the given option equals this one.
- InputOption::setDefault in vendor/
symfony/ console/ Input/ InputOption.php - Sets the default value.
- InputOption::__construct in vendor/
symfony/ console/ Input/ InputOption.php
File
-
vendor/
symfony/ console/ Input/ InputOption.php, line 183
Class
- InputOption
- Represents a command line option.
Namespace
Symfony\Component\Console\InputCode
public function isNegatable() : bool {
return self::VALUE_NEGATABLE === (self::VALUE_NEGATABLE & $this->mode);
}