PHP Class Webmozart\Console\Adapter\ArgsFormatInputDefinition

Since: 1.0
Author: Bernhard Schussek ([email protected])
Inheritance: extends Symfony\Component\Console\Input\InputDefinition
Show file Open project: webmozart/console Class Usage Examples

Public Methods

Method Description
__construct ( ArgsFormat $format ) Creates a new adapter.
getCommandNamesByArgumentName ( ) : CommandName[] Returns the command names indexed by their argument names.

Private Methods

Method Description
adaptArgument ( Argument $argument ) : Symfony\Component\Console\Input\InputArgument Creates an input argument for the given argument.
adaptCommandName ( CommandName $commandName, string $argName ) : Symfony\Component\Console\Input\InputArgument Creates an input argument for the given command name.
adaptCommandOption ( CommandOption $commandOption ) : Symfony\Component\Console\Input\InputOption Creates an input option for the given command option.
adaptOption ( Option $option ) : Symfony\Component\Console\Input\InputOption Creates an input option for the given option.

Method Details

__construct() public method

Creates a new adapter.
public __construct ( ArgsFormat $format )
$format Webmozart\Console\Api\Args\Format\ArgsFormat The adapted format.

getCommandNamesByArgumentName() public method

Returns the command names indexed by their argument names.
public getCommandNamesByArgumentName ( ) : CommandName[]
return Webmozart\Console\Api\Args\Format\CommandName[] The command names.