PHP Класс Webmozart\Console\Adapter\ArgsFormatInputDefinition

С версии: 1.0
Автор: Bernhard Schussek ([email protected])
Наследование: extends Symfony\Component\Console\Input\InputDefinition
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( ArgsFormat $format ) Creates a new adapter.
getCommandNamesByArgumentName ( ) : CommandName[] Returns the command names indexed by their argument names.

Приватные методы

Метод Описание
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.

Описание методов

__construct() публичный Метод

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

getCommandNamesByArgumentName() публичный Метод

Returns the command names indexed by their argument names.
public getCommandNamesByArgumentName ( ) : CommandName[]
Результат Webmozart\Console\Api\Args\Format\CommandName[] The command names.