Class Symfony\Component\Console\Input\ArrayInput

InheritanceSymfony\Component\Console\Input\ArrayInput » Symfony\Component\Console\Input\Input

ArrayInput represents an input provided as an array.


$input = new ArrayInput(array('name' => 'foo', '--bar' => 'foobar'));

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
parse() {@inheritdoc} Symfony\Component\Console\Input\ArrayInput

Method Details

__construct() public method


public void __construct ( array $parameters, Symfony\Component\Console\Input\InputDefinition $definition null )
$parameters array

An array of parameters

$definition Symfony\Component\Console\Input\InputDefinition|null

A InputDefinition instance

__toString() public method

Returns a stringified representation of the args passed to the command.

public string __toString ( )
getFirstArgument() public method


public void getFirstArgument ( )
getParameterOption() public method


public void getParameterOption ( $values, $default false, $onlyParams false )
hasParameterOption() public method


public void hasParameterOption ( $values, $onlyParams false )
parse() protected method


protected void parse ( )