You are here

public function InputOption::isArray 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::isArray()

Returns true if the option can take multiple values.

Return value

bool true if mode is self::VALUE_IS_ARRAY, false otherwise

3 calls to InputOption::isArray()
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
Constructor.

File

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

Class

InputOption
Represents a command line option.

Namespace

Symfony\Component\Console\Input

Code

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