Property | Type | Description | |
---|---|---|---|
$_argumentArray | array | array of parsed arguments | |
$_optionArray | array | array of parsed options | |
$_request | object | instance of the request class |
Method | Description | |
---|---|---|
__construct ( |
constructor of the class | |
getArgument ( string $key = null ) : mixed | get item from arguments | |
getOption ( string $key = null ) : mixed | get item from options | |
init ( string $mode = null ) | init the class | |
setArgument ( string $key = null, mixed $value = null ) | set item to arguments | |
setOption ( string $key = null, mixed $value = null ) | set item to options |
Method | Description | |
---|---|---|
_parseArgument ( array $argumentArray = [] ) | parse raw argument | |
_parseOption ( string $option = null, string $next = null, integer $offset = null ) : boolean | parse raw option |
public __construct ( |
||
$request | instance of the request class |
protected _parseArgument ( array $argumentArray = [] ) | ||
$argumentArray | array | raw argument to be parsed |
public getArgument ( string $key = null ) : mixed | ||
$key | string | key of the item |
return | mixed |
public setArgument ( string $key = null, mixed $value = null ) | ||
$key | string | key of the item |
$value | mixed | value of the item |
protected array $_argumentArray | ||
return | array |
protected array $_optionArray | ||
return | array |
protected object $_request | ||
return | object |