PHP Class DbPatch_Command_Runner

Author: Rudi de Vries
Datei anzeigen Open project: dbpatch/dbpatch Class Usage Examples

Protected Properties

Property Type Description
$writer DbPatch_Core_Writer | null

Public Methods

Method Description
__construct ( DbPatch_Core_Writer $writer )
getCommand ( string $command, DbPatch_Core_Console $console ) : DbPatch_Command_Abstract
getValidCommands ( ) : array
getWriter ( ) : DbPatch_Core_Writer
showHelp ( ) : void Show help options of DbPatch

Protected Methods

Method Description
convertShortCommand ( string $command ) : string Convert short commands to long names

Method Details

__construct() public method

public __construct ( DbPatch_Core_Writer $writer )
$writer DbPatch_Core_Writer

convertShortCommand() protected method

Convert short commands to long names
protected convertShortCommand ( string $command ) : string
$command string
return string

getCommand() public method

public getCommand ( string $command, DbPatch_Core_Console $console ) : DbPatch_Command_Abstract
$command string
$console DbPatch_Core_Console
return DbPatch_Command_Abstract

getValidCommands() public static method

public static getValidCommands ( ) : array
return array

getWriter() public method

public getWriter ( ) : DbPatch_Core_Writer
return DbPatch_Core_Writer

showHelp() public method

Show help options of DbPatch
public showHelp ( ) : void
return void

Property Details

$writer protected_oe property

protected DbPatch_Core_Writer|null $writer
return DbPatch_Core_Writer | null