Property | Type | Description | |
---|---|---|---|
$allowed_keys | array | ||
$data | array |
Method | Description | |
---|---|---|
__construct ( array $allowed_keys = [] ) | ||
asArray ( boolean $fullArray = false ) : array | Convert this object in an array | |
get ( mixed $key ) : mixed | Get a value by a key | |
getKeys ( ) : array | Returns the keys of all setted values | |
has ( mixed $key ) : boolean | Check if a value exists | |
set ( string $key, mixed $value ) : self | Set a value |
Method | Description | |
---|---|---|
getValue ( string $key ) : mixed | Get a value by the key | |
objectTransform ( $val ) : mixed | Transforms objects to arrays | |
parseKey ( string | |
Parse a dot.notated.key to an object |
public __construct ( array $allowed_keys = [] ) | ||
$allowed_keys | array | Keys of allowed values |
protected objectTransform ( $val ) : mixed | ||
$val | ||
return | mixed |