Class Symfony\Component\Console\Input\ArrayInput

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

ArrayInput represents an input provided as an array.

Usage:

$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

Constructor.

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

{@inheritdoc}

public void getFirstArgument ( )
getParameterOption() public method

{@inheritdoc}

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

{@inheritdoc}

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

{@inheritdoc}

protected void parse ( )