You are here

public function InputOption::isValueRequired in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/Input/InputOption.php \Symfony\Component\Console\Input\InputOption::isValueRequired()

Returns true if the option requires a value.

Return value

bool true if value mode is self::VALUE_REQUIRED, false otherwise

2 calls to InputOption::isValueRequired()
InputOption::acceptValue in vendor/symfony/console/Input/InputOption.php
Returns true if the option accepts a value.
InputOption::equals in vendor/symfony/console/Input/InputOption.php
Checks whether the given option equals this one.

File

vendor/symfony/console/Input/InputOption.php, line 123

Class

InputOption
Represents a command line option.

Namespace

Symfony\Component\Console\Input

Code

public function isValueRequired() {
  return self::VALUE_REQUIRED === (self::VALUE_REQUIRED & $this->mode);
}