PHP Class DbPatch_Core_Console

Author: Sandy Pleyte
Author: Martijn De Letter
Show file Open project: dbpatch/dbpatch Class Usage Examples

Protected Properties

Property Type Description
$arguments array
$options array

Public Methods

Method Description
__construct ( array $argv ) : void
getArguments ( ) : array
getCommand ( ) : string Returns the command parameter from the command line
getOptionValue ( string $option, string $default = '' ) : string
getOptions ( ) : array
issetOption ( string $option ) : boolean

Protected Methods

Method Description
parseOptions ( ) : void

Method Details

__construct() public method

public __construct ( array $argv ) : void
$argv array
return void

getArguments() public method

public getArguments ( ) : array
return array

getCommand() public method

Returns the command parameter from the command line
public getCommand ( ) : string
return string

getOptionValue() public method

public getOptionValue ( string $option, string $default = '' ) : string
$option string
$default string
return string

getOptions() public method

public getOptions ( ) : array
return array

issetOption() public method

public issetOption ( string $option ) : boolean
$option string
return boolean

parseOptions() protected method

protected parseOptions ( ) : void
return void

Property Details

$arguments protected property

protected array $arguments
return array

$options protected property

protected array $options
return array