[Console] fixed typo

This commit is contained in:
Fabien Potencier 2011-02-08 22:37:21 +01:00
parent 7e0ed2759b
commit fae8a557f9
3 changed files with 5 additions and 5 deletions

View File

@ -263,7 +263,7 @@ class ArgvInput extends Input
*
* @return mixed The option value
*/
public function getParameterOption(array $values, $default = false)
public function getParameterOption($values, $default = false)
{
if (!is_array($values)) {
$values = array($values);

View File

@ -92,7 +92,7 @@ class ArrayInput extends Input
*
* @return mixed The option value
*/
public function getParameterOption(array $values, $default = false)
public function getParameterOption($values, $default = false)
{
if (!is_array($values)) {
$values = array($values);

View File

@ -31,11 +31,11 @@ interface InputInterface
* This method is to be used to introspect the input parameters
* before it has been validated. It must be used carefully.
*
* @param string $value The value to look for in the raw parameters
* @param string|array $value The values to look for in the raw parameters (can be an array)
*
* @return Boolean true if the value is contained in the raw parameters
*/
function hasParameterOption($value);
function hasParameterOption($values);
/**
* Returns the value of a raw option (not parsed).
@ -47,7 +47,7 @@ interface InputInterface
*
* @return mixed The option value
*/
function getParameterOption(array $values, $default = false);
function getParameterOption($values, $default = false);
/**
* Binds the current Input instance with the given arguments and options.