PHP 인터페이스 Zephir\Commands\CommandInterface

Provides an interface to build commands
파일 보기 프로젝트 열기: phalcon/zephir 0 사용 예제들

공개 메소드들

메소드 설명
execute ( Zephir\Config $config, Zephir\Logger $logger ) Executes the command
getCommand ( ) : string Command provided by this command
getDescription ( ) : string
getParameter ( string $parameterName ) : string Returns parameter named parameterName if specified on the command line else null
getUsage ( ) : string Command usage

메소드 상세

execute() 공개 메소드

Executes the command
public execute ( Zephir\Config $config, Zephir\Logger $logger )
$config Zephir\Config
$logger Zephir\Logger

getCommand() 공개 메소드

Command provided by this command
public getCommand ( ) : string
리턴 string

getDescription() 공개 메소드

public getDescription ( ) : string
리턴 string

getParameter() 공개 메소드

Returns parameter named parameterName if specified on the command line else null
public getParameter ( string $parameterName ) : string
$parameterName string
리턴 string

getUsage() 공개 메소드

Command usage
public getUsage ( ) : string
리턴 string