[Console] fixed typo
This commit is contained in:
parent
7e0ed2759b
commit
fae8a557f9
@ -263,7 +263,7 @@ class ArgvInput extends Input
|
|||||||
*
|
*
|
||||||
* @return mixed The option value
|
* @return mixed The option value
|
||||||
*/
|
*/
|
||||||
public function getParameterOption(array $values, $default = false)
|
public function getParameterOption($values, $default = false)
|
||||||
{
|
{
|
||||||
if (!is_array($values)) {
|
if (!is_array($values)) {
|
||||||
$values = array($values);
|
$values = array($values);
|
||||||
|
@ -92,7 +92,7 @@ class ArrayInput extends Input
|
|||||||
*
|
*
|
||||||
* @return mixed The option value
|
* @return mixed The option value
|
||||||
*/
|
*/
|
||||||
public function getParameterOption(array $values, $default = false)
|
public function getParameterOption($values, $default = false)
|
||||||
{
|
{
|
||||||
if (!is_array($values)) {
|
if (!is_array($values)) {
|
||||||
$values = array($values);
|
$values = array($values);
|
||||||
|
@ -31,11 +31,11 @@ interface InputInterface
|
|||||||
* This method is to be used to introspect the input parameters
|
* This method is to be used to introspect the input parameters
|
||||||
* before it has been validated. It must be used carefully.
|
* 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
|
* @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).
|
* Returns the value of a raw option (not parsed).
|
||||||
@ -47,7 +47,7 @@ interface InputInterface
|
|||||||
*
|
*
|
||||||
* @return mixed The option value
|
* @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.
|
* Binds the current Input instance with the given arguments and options.
|
||||||
|
Reference in New Issue
Block a user