Method | Description | |
---|---|---|
__construct ( array $options = [] ) | Constructor. | |
getDefault ( ) : array | Get default options. | |
offsetExists ( mixed $offset ) : boolean | Implemention of ArrayAccess. | |
offsetGet ( mixed $offset ) : mixed | Implemention of ArrayAccess. | |
offsetSet ( mixed $offset, mixed $value ) | Implemention of ArrayAccess. | |
offsetUnset ( mixed $offset ) | Implemention of ArrayAccess. | |
reconfigure ( array $options ) : |
Reconfigure to get new instance. | |
setDefault ( array $options ) | Set default options. |
Method | Description | |
---|---|---|
validateBool ( string $key, mixed $value ) : boolean | Validate bool value. | |
validateNaturalFloat ( string $key, mixed $value ) : float | Validate natural float value. | |
validateNaturalInt ( string $key, mixed $value ) : integer | Validate natural int value. | |
validateOptions ( array $options ) : array | Validate options. |
public static getDefault ( ) : array | ||
return | array | $options |
public offsetExists ( mixed $offset ) : boolean | ||
$offset | mixed | |
return | boolean |
public offsetUnset ( mixed $offset ) | ||
$offset | mixed |
public reconfigure ( array $options ) : |
||
$options | array | |
return |
public static setDefault ( array $options ) | ||
$options | array |