Свойство | Type | Description | |
---|---|---|---|
$options |
Свойство | Type | Description | |
---|---|---|---|
$defaults | |||
$types |
Méthode | Description | |
---|---|---|
__construct ( array $opts ) | ||
getOpt ( String $opt ) : Mixed | Gets an options. |
Méthode | Description | |
---|---|---|
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. |
Résultat | Mixed |
protected mergeDefaults ( array $opts ) : [String | ||
$opts | array | |
Résultat | [String |
protected validate ( $opts ) : [String | ||
Résultat | [String |