Method | Description | |
---|---|---|
__construct ( $options, $default = true ) | Constructor | |
__get ( $key ) | ||
__isset ( $key ) | ||
coerce ( $from ) | Convert either a null, a string or an array into an Option | |
fromString ( $string, $default = true ) : |
Creates an options object from a flat string | |
getIterator ( ) | * (non-phpdoc) | |
merge ( $array, $default = true ) | Merges a new array into the options structure | |
toString ( $default = true ) | Serializes the options to a string. |
public static coerce ( $from ) |
public static fromString ( $string, $default = true ) : |
||
return |
public merge ( $array, $default = true ) |