You are here

public function InputInterface::setOption in Zircon Profile 8

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

Sets an option value by name.

Parameters

string $name The option name:

string|bool $value The option value:

Throws

\InvalidArgumentException When option given doesn't exist

1 method overrides InputInterface::setOption()
Input::setOption in vendor/symfony/console/Input/Input.php
Sets an option value by name.

File

vendor/symfony/console/Input/InputInterface.php, line 128

Class

InputInterface
InputInterface is the interface implemented by all input classes.

Namespace

Symfony\Component\Console\Input

Code

public function setOption($name, $value);