PHP Interface Zephir\Commands\CommandInterface

Provides an interface to build commands
Afficher le fichier Open project: phalcon/zephir Interface Usage Examples

Méthodes publiques

Méthode 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 méthode

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

getCommand() public méthode

Command provided by this command
public getCommand ( ) : string
Résultat string

getDescription() public méthode

public getDescription ( ) : string
Résultat string

getParameter() public méthode

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

getUsage() public méthode

Command usage
public getUsage ( ) : string
Résultat string