Метод | Описание | |
---|---|---|
__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. |
Метод | Описание | |
---|---|---|
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 __construct ( array $options = [] ) | ||
$options | array |
public static getDefault ( ) : array | ||
Результат | array | $options |
public offsetExists ( mixed $offset ) : boolean | ||
$offset | mixed | |
Результат | boolean |
public offsetUnset ( mixed $offset ) | ||
$offset | mixed |
public reconfigure ( array $options ) : |
||
$options | array | |
Результат |
public static setDefault ( array $options ) | ||
$options | array |