PHP Class HippoPHP\Hippo\CLI\ArgContainer

Show file Open project: hippophp/hippo Class Usage Examples

Public Methods

Method Description
addStrayArgument ( mixed $value )
getAllOptions ( ) : array
getLongOption ( string $arg )
getLongOptions ( ) : array
getShortOption ( string $arg )
getShortOptions ( ) : array
getStrayArguments ( ) : mixed[]
setLongOption ( string $arg, mixed $value )
setShortOption ( string $arg, mixed $value )

Method Details

addStrayArgument() public method

public addStrayArgument ( mixed $value )
$value mixed

getAllOptions() public method

public getAllOptions ( ) : array
return array

getLongOption() public method

public getLongOption ( string $arg )
$arg string

getLongOptions() public method

public getLongOptions ( ) : array
return array

getShortOption() public method

public getShortOption ( string $arg )
$arg string

getShortOptions() public method

public getShortOptions ( ) : array
return array

getStrayArguments() public method

public getStrayArguments ( ) : mixed[]
return mixed[]

setLongOption() public method

public setLongOption ( string $arg, mixed $value )
$arg string
$value mixed

setShortOption() public method

public setShortOption ( string $arg, mixed $value )
$arg string
$value mixed