Property | Type | Description | |
---|---|---|---|
$options |
Property | Type | Description | |
---|---|---|---|
$defaults | |||
$types |
Method | Description | |
---|---|---|
__construct ( array $opts ) | ||
getOpt ( String $opt ) : Mixed | Gets an options. |
Method | 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. |
return | Mixed |
protected mergeDefaults ( array $opts ) : [String | ||
$opts | array | |
return | [String |
protected validate ( $opts ) : [String | ||
return | [String |