PHP Интерфейс Yosymfony\Spress\Plugin\CommandPluginInterface

Автор: Victor Puertas ([email protected])
Наследование: extends Yosymfony\Spress\Core\Plugin\PluginInterface
Показать файл Открыть проект Примеры использования интерфейса

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

Метод Описание
executeCommand ( Yosymfony\Spress\Core\IO\IOInterface $io, array $arguments, array $options ) : null | integer Executes the current command.
getCommandDefinition ( ) : Yosymfony\Spress\Plugin\CommandDefinition Gets the command's definition.
getCommandEnvironment ( ) : Yosymfony\Spress\Plugin\Environment\CommandEnvironmentInterface Gets the command environment.
setCommandEnvironment ( Yosymfony\Spress\Plugin\Environment\CommandEnvironmentInterface $environment ) Sets the command environment.

Описание методов

executeCommand() публичный Метод

Executes the current command.
public executeCommand ( Yosymfony\Spress\Core\IO\IOInterface $io, array $arguments, array $options ) : null | integer
$io Yosymfony\Spress\Core\IO\IOInterface Input/output interface
$arguments array Arguments passed to the command
$options array Options passed to the command
Результат null | integer null or 0 if everything went fine, or an error code

getCommandDefinition() публичный Метод

Gets the command's definition.
public getCommandDefinition ( ) : Yosymfony\Spress\Plugin\CommandDefinition
Результат Yosymfony\Spress\Plugin\CommandDefinition Definition of the command

getCommandEnvironment() публичный Метод

Gets the command environment.
public getCommandEnvironment ( ) : Yosymfony\Spress\Plugin\Environment\CommandEnvironmentInterface
Результат Yosymfony\Spress\Plugin\Environment\CommandEnvironmentInterface

setCommandEnvironment() публичный Метод

Sets the command environment.
public setCommandEnvironment ( Yosymfony\Spress\Plugin\Environment\CommandEnvironmentInterface $environment )
$environment Yosymfony\Spress\Plugin\Environment\CommandEnvironmentInterface The environment