PHP 클래스 Webmozart\Console\Adapter\ArgsFormatInputDefinition

부터: 1.0
저자: Bernhard Schussek ([email protected])
상속: extends Symfony\Component\Console\Input\InputDefinition
파일 보기 프로젝트 열기: webmozart/console 1 사용 예제들

공개 메소드들

메소드 설명
__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.