PHP Class Zephir\Commands\CommandAbstract

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

Public Methods

Method 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

Protected Methods

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

Method Details

execute() public method

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

getParameter() public method

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

parseArguments() public method

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

setParameter() protected method

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