function 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. Does not necessarily return the correct result for short options when multiple flags are combined in the same option.
Parameters
string|array $values The value(s) to look for in the raw parameters (can be an array):
string|bool|int|float|array|null $default The default value to return if no result is found:
bool $onlyParams Only check real parameters, skip those following an end of options (--) signal:
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 54
Class
- InputInterface
- InputInterface is the interface implemented by all input classes.
Namespace
Symfony\Component\Console\InputCode
public function getParameterOption(string|array $values, string|bool|int|float|array|null $default = false, bool $onlyParams = false) : mixed;