You are here

public function InputInterface::getParameterOption 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::getParameterOption()

Returns the value of a raw option (not parsed).

This method is to be used to introspect the input parameters before they have been validated. It must be used carefully.

Parameters

string|array $values The value(s) to look for in the raw parameters (can be an array):

mixed $default The default value to return if no result is found:

Return value

mixed The option value

2 methods override InputInterface::getParameterOption()
ArgvInput::getParameterOption in vendor/symfony/console/Input/ArgvInput.php
Returns the value of a raw option (not parsed).
ArrayInput::getParameterOption in vendor/symfony/console/Input/ArrayInput.php
Returns the value of a raw option (not parsed).

File

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

Class

InputInterface
InputInterface is the interface implemented by all input classes.

Namespace

Symfony\Component\Console\Input

Code

public function getParameterOption($values, $default = false);