PHP Интерфейс Zephir\Commands\CommandInterface

Provides an interface to build commands
Показать файл Открыть проект Примеры использования интерфейса

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

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