PHP 클래스 Zephir\Commands\CommandAbstract

Provides a superclass for commands
상속: implements Zephir\Commands\CommandInterface
파일 보기 프로젝트 열기: phalcon/zephir 1 사용 예제들

공개 메소드들

메소드 설명
execute ( Zephir\Config $config, Zephir\Logger $logger ) Executes the command
getParameter ( string $name ) : string Returns parameter named $name if specified on the command line else null
parseArguments ( ) : array Parse the input arguments for the command and returns theme as an associative array

보호된 메소드들

메소드 설명
setParameter ( string $name, string $value ) : void Returns parameter named $name if specified on the command line else null

메소드 상세

execute() 공개 메소드

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

getParameter() 공개 메소드

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

parseArguments() 공개 메소드

Parse the input arguments for the command and returns theme as an associative array
public parseArguments ( ) : array
리턴 array the list of the parameters

setParameter() 보호된 메소드

Returns parameter named $name if specified on the command line else null
protected setParameter ( string $name, string $value ) : void
$name string
$value string
리턴 void