PHP Interface Zephir\Commands\CommandInterface

Provides an interface to build commands
Exibir arquivo Open project: phalcon/zephir Interface Usage Examples

Public Methods

Method Description
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

Method Details

execute() public method

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

getCommand() public method

Command provided by this command
public getCommand ( ) : string
return string

getDescription() public method

public getDescription ( ) : string
return string

getParameter() public method

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

getUsage() public method

Command usage
public getUsage ( ) : string
return string