PHP 클래스 Webmozart\Console\Api\Config\SubCommandConfig

A sub-command is defined within the scope of another command. For example, in the command server add , the command "add" is a sub-command of the "server" command.
또한 보기: OptionCommandConfig
부터: 1.0
저자: Bernhard Schussek ([email protected])
상속: extends CommandConfig
파일 보기 프로젝트 열기: webmozart/console 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( string $name = null, CommandConfig $parentConfig = null ) Creates a new configuration.
end ( ) : CommandConfig | SubCommandConfig | OptionCommandConfig Ends the block when dynamically configuring a nested configuration.
getParentConfig ( ) : CommandConfig Returns the parent command configuration.
setParentConfig ( CommandConfig $parentConfig ) Sets the parent command configuration.

보호된 메소드들

메소드 설명
getDefaultArgsParser ( )
getDefaultHandler ( )
getDefaultHandlerMethod ( )
getDefaultHelperSet ( )
getDefaultLenientArgsParsing ( )

메소드 상세

__construct() 공개 메소드

Creates a new configuration.
public __construct ( string $name = null, CommandConfig $parentConfig = null )
$name string The name of the command.
$parentConfig CommandConfig The command configuration that contains this configuration.

end() 공개 메소드

This method is usually used together with {@link CommandConfig::beginSubCommand()}, {@link CommandConfig::beginOptionCommand()} or {@link CommandConfig::beginDefaultCommand()}: php $config ->beginSubCommand('add') ... ->end() ... ;
public end ( ) : CommandConfig | SubCommandConfig | OptionCommandConfig
리턴 CommandConfig | SubCommandConfig | OptionCommandConfig The parent command configuration.

getDefaultArgsParser() 보호된 메소드

protected getDefaultArgsParser ( )

getDefaultHandler() 보호된 메소드

protected getDefaultHandler ( )

getDefaultHandlerMethod() 보호된 메소드

protected getDefaultHandlerMethod ( )

getDefaultHelperSet() 보호된 메소드

protected getDefaultHelperSet ( )

getDefaultLenientArgsParsing() 보호된 메소드

getParentConfig() 공개 메소드

Returns the parent command configuration.
public getParentConfig ( ) : CommandConfig
리턴 CommandConfig The parent command configuration.

setParentConfig() 공개 메소드

Sets the parent command configuration.
public setParentConfig ( CommandConfig $parentConfig )
$parentConfig CommandConfig The parent command configuration.