Свойство | Тип | Описание | |
---|---|---|---|
$options |
Свойство | Тип | Описание | |
---|---|---|---|
$defaults | |||
$types |
Метод | Описание | |
---|---|---|
__construct ( array $opts ) | ||
getOpt ( String $opt ) : Mixed | Gets an options. |
Метод | Описание | |
---|---|---|
convertToBoolean ( mixed $value ) : boolean | mixed | Converts the given value to a Boolean if it can be. | |
convertToInt ( mixed $value ) : integer | mixed | Converts the given value to a Integer if it can be. | |
mergeDefaults ( array $opts ) : [String | Returns all of the index options set to their default or given value (using the given options). | |
validate ( $opts ) : [String | Validates the given options as index options. |
public getOpt ( String $opt ) : Mixed | ||
$opt | String | Option name. |
Результат | Mixed |
protected mergeDefaults ( array $opts ) : [String | ||
$opts | array | |
Результат | [String |
protected validate ( $opts ) : [String | ||
Результат | [String |