PHP Класс Zephir\Commands\CommandAbstract

Provides a superclass for commands
Наследование: implements Zephir\Commands\CommandInterface
Показать файл Открыть проект Примеры использования класса

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

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