JsonConfig
class JsonConfig implements JsonSerializable (View source)
JsonConfig Object
The parent object for all config objects. Adds JsonSerializable and methods for setting options.
Methods
Creates a new JsonConfig object
Get the value of a set option via magic method.
Gets the Options object for the JsonConfig
Shortcut method to set the value of an option and return $this.
Parses the config array by passing the values through each method to check validity against if the option exists.
Custom serialization of the JsonConfig object.
Details
at line 40
__construct(
Options $options,
array $config = array())
Creates a new JsonConfig object
at line 64
mixed
__get(
string $option)
Get the value of a set option via magic method.
at line 75
Options
getOptions()
Gets the Options object for the JsonConfig
at line 90
JsonConfig
setOption(
string $option,
mixed $value)
Shortcut method to set the value of an option and return $this.
In order to maintain backwards compatibility, ConfigObjects will be unwrapped.
at line 106
setOptions(
array $config)
Parses the config array by passing the values through each method to check validity against if the option exists.
at line 275
array
jsonSerialize()
Custom serialization of the JsonConfig object.