You are here

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

Returns true if the option accepts a value.

Return value

bool true if value mode is not self::VALUE_NONE, false otherwise

2 calls to InputOption::acceptValue()
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 113

Class

InputOption
Represents a command line option.

Namespace

Symfony\Component\Console\Input

Code

public function acceptValue() {
  return $this
    ->isValueRequired() || $this
    ->isValueOptional();
}