Метод |
Описание |
|
__construct ( $spec ) |
|
|
__toString ( ) |
|
|
defaultValue ( $value ) |
|
|
desc ( $desc ) |
|
|
filter ( $cb ) |
Set up a filter function for the option value. |
|
flag ( ) |
|
|
getId ( ) |
*
get the option key for result key mapping. |
|
getSuggestions ( ) : string[] |
Return suggestions. |
|
getTypeClass ( ) |
|
|
getValidValues ( ) : string[] |
Return valud values array. |
|
getValue ( ) |
|
|
increaseValue ( ) |
This method is for incremental option. |
|
incremental ( ) |
To make -v, -vv, -vvv works. |
|
isFlag ( ) |
|
|
isIncremental ( ) |
|
|
isMultiple ( ) |
|
|
isOptional ( ) |
|
|
isRequired ( ) |
|
|
isType ( $type ) |
|
|
isTypeNumber ( ) |
|
|
isa ( string $type, mixed $option = null ) |
Value Type Setters. |
|
multiple ( ) |
|
|
optional ( ) |
|
|
pushValue ( $value ) |
push option value, when the option accept multiple values. |
|
renderReadableSpec ( string $renderHint = true ) |
get readable spec for printing. |
|
renderValueHint ( ) |
|
|
required ( ) |
|
|
setValue ( $value ) |
*
set option value |
|
suggestions ( $suggestions ) |
Assign suggestions. |
|
testValue ( $value ) |
|
|
trigger ( callable $trigger ) |
|
|
validValues ( $values ) |
Assign validValues to member value. |
|
validate ( $value ) |
|
|
validator ( $cb ) |
|
|
valueName ( $name ) |
valueName is for option value hinting:. |
|