PHP 클래스 Redaxscript\Console\Parser

부터: 3.0.0
저자: Henry Ruhs
파일 보기 프로젝트 열기: redaxmedia/redaxscript 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_argumentArray array array of parsed arguments
$_optionArray array array of parsed options
$_request object instance of the request class

공개 메소드들

메소드 설명
__construct ( Request $request ) 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

보호된 메소드들

메소드 설명
_parseArgument ( array $argumentArray = [] ) parse raw argument
_parseOption ( string $option = null, string $next = null, integer $offset = null ) : boolean parse raw option

메소드 상세

__construct() 공개 메소드

constructor of the class
부터: 3.0.0
public __construct ( Request $request )
$request Redaxscript\Request instance of the request class

_parseArgument() 보호된 메소드

parse raw argument
부터: 3.0.0
protected _parseArgument ( array $argumentArray = [] )
$argumentArray array raw argument to be parsed

_parseOption() 보호된 메소드

parse raw option
부터: 3.0.0
protected _parseOption ( string $option = null, string $next = null, integer $offset = null ) : boolean
$option string raw option to be parsed
$next string raw next to be parsed
$offset integer offset of the raw option
리턴 boolean

getArgument() 공개 메소드

get item from arguments
부터: 3.0.0
public getArgument ( string $key = null ) : mixed
$key string key of the item
리턴 mixed

getOption() 공개 메소드

get item from options
부터: 3.0.0
public getOption ( string $key = null ) : mixed
$key string key of the item
리턴 mixed

init() 공개 메소드

init the class
부터: 3.0.0
public init ( string $mode = null )
$mode string name of the mode

setArgument() 공개 메소드

set item to arguments
부터: 3.0.0
public setArgument ( string $key = null, mixed $value = null )
$key string key of the item
$value mixed value of the item

setOption() 공개 메소드

set item to options
부터: 3.0.0
public setOption ( string $key = null, mixed $value = null )
$key string key of the item
$value mixed value of the item

프로퍼티 상세

$_argumentArray 보호되어 있는 프로퍼티

array of parsed arguments
protected array $_argumentArray
리턴 array

$_optionArray 보호되어 있는 프로퍼티

array of parsed options
protected array $_optionArray
리턴 array

$_request 보호되어 있는 프로퍼티

instance of the request class
protected object $_request
리턴 object