\Inhere\Console\IO\InputStrictInput

Class StrictInput - 严格按照定义解析 - 初始化时不全部解析,只取出 '-h' '--help' 还有命令名 - 到运行命令时根据命令的参数选项配置(InputDefinition)来进行解析 - @todo un-completed

Summary

Methods
Properties
Constants
__construct()
parseTokens()
getPreParsed()
setPreParsed()
getCleanedTokens()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
collectPreParsed()
$preParsed
$cleanedTokens
N/A

Properties

$preParsed

$preParsed : array

the prepare parsed options.

Type

array

$cleanedTokens

$cleanedTokens : array

Type

array

Methods

__construct()

__construct(null|array  $args = null) 

FixedInput constructor.

Parameters

null|array $args

parseTokens()

parseTokens(array  $allowArray = array(), array  $noValues = array()) 

Parameters

array $allowArray
array $noValues

getPreParsed()

getPreParsed() : array

Returns

array

setPreParsed()

setPreParsed(array  $preParsed) 

Parameters

array $preParsed

getCleanedTokens()

getCleanedTokens() : array|null

Returns

array|null

collectPreParsed()

collectPreParsed(array  $tokens) 

Parameters

array $tokens