PHP Class Zephir\Commands\CommandAbstract

Provides a superclass for commands
Inheritance: implements Zephir\Commands\CommandInterface
Afficher le fichier Open project: phalcon/zephir Class Usage Examples

Méthodes publiques

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

Méthodes protégées

Méthode Description
setParameter ( string $name, string $value ) : void Returns parameter named $name if specified on the command line else null

Method Details

execute() public méthode

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

getParameter() public méthode

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

parseArguments() public méthode

Parse the input arguments for the command and returns theme as an associative array
public parseArguments ( ) : array
Résultat array the list of the parameters

setParameter() protected méthode

Returns parameter named $name if specified on the command line else null
protected setParameter ( string $name, string $value ) : void
$name string
$value string
Résultat void