Class InputDefinition
A InputDefinition represents a set of valid command line arguments and options.
Usage: $definition = new InputDefinition(array( new InputArgument('name', InputArgument::REQUIRED), new InputOption('foo', 'f', InputOption::VALUE_REQUIRED), ));
Direct known subclasses
Peridot\Console\InputDefinition
Namespace: Symfony\Component\Console\Input
Author: Fabien Potencier fabien@symfony.com
Located at Input/InputDefinition.php
Author: Fabien Potencier fabien@symfony.com
Located at Input/InputDefinition.php
public
|
|
public
|
|
public
|
#
setArguments(
Sets the InputArgument objects. |
public
|
#
addArguments(
Adds an array of InputArgument objects. |
public
|
#
addArgument(
Adds an InputArgument object. |
public
|
|
public
boolean
|
#
hasArgument( string|integer $name )
Returns true if an InputArgument object exists by name or position. |
public
|
|
public
integer
|
|
public
integer
|
|
public
array
|
|
public
|
#
setOptions(
Sets the InputOption objects. |
public
|
#
addOptions(
Adds an array of InputOption objects. |
public
|
|
public
|
|
public
boolean
|
|
public
|
|
public
boolean
|
|
public
|
|
public
array
|
|
public
string
|
|
public
string
|
|
public
string|DOMDocument
|