@@ -140,20 +140,24 @@ var_dump($container->what); // -> hash: 5946210c9e93ae37891dfe96c3e39614 (custom
140140
141141#### [ ` SettingsContainerAbstract ` ] ( https://github.com/chillerlan/php-settings-container/blob/main/src/SettingsContainerAbstract.php )
142142
143- | method | return | info |
144- | --------------------------------------------| ------------------------------| -----------------------------------------------------------------------------------------------------------------|
145- | ` __construct(iterable $properties = null) ` | - | calls ` construct() ` internally after the properties have been set |
146- | (protected) ` construct() ` | void | calls a method with trait name as replacement constructor for each used trait |
147- | ` __get(string $property) ` | mixed | calls ` $this->{'get_'.$property}() ` if such a method exists |
148- | ` __set(string $property, $value) ` | void | calls ` $this->{'set_'.$property}($value) ` if such a method exists |
149- | ` __isset(string $property) ` | bool | |
150- | ` __unset(string $property) ` | void | |
151- | ` __toString() ` | string | a JSON string |
152- | ` toArray() ` | array | |
153- | ` fromIterable(iterable $properties) ` | ` SettingsContainerInterface ` | |
154- | ` toJSON(int $jsonOptions = null) ` | string | accepts [ JSON options constants] ( http://php.net/manual/json.constants.php ) |
155- | ` fromJSON(string $json) ` | ` SettingsContainerInterface ` | |
156- | ` jsonSerialize() ` | mixed | implements the [ ` JsonSerializable ` ] ( https://www.php.net/manual/en/jsonserializable.jsonserialize.php ) interface |
143+ | method | return | info |
144+ | --------------------------------------------| ------------------------------| ---------------------------------------------------------------------------------------------------------------------|
145+ | ` __construct(iterable $properties = null) ` | - | calls ` construct() ` internally after the properties have been set |
146+ | (protected) ` construct() ` | void | calls a method with trait name as replacement constructor for each used trait |
147+ | ` __get(string $property) ` | mixed | calls ` $this->{'get_'.$property}() ` if such a method exists |
148+ | ` __set(string $property, $value) ` | void | calls ` $this->{'set_'.$property}($value) ` if such a method exists |
149+ | ` __isset(string $property) ` | bool | |
150+ | ` __unset(string $property) ` | void | |
151+ | ` __toString() ` | string | a JSON string |
152+ | ` toArray() ` | array | |
153+ | ` fromIterable(iterable $properties) ` | ` SettingsContainerInterface ` | |
154+ | ` toJSON(int $jsonOptions = null) ` | string | accepts [ JSON options constants] ( http://php.net/manual/json.constants.php ) |
155+ | ` fromJSON(string $json) ` | ` SettingsContainerInterface ` | |
156+ | ` jsonSerialize() ` | mixed | implements the [ ` JsonSerializable ` ] ( https://www.php.net/manual/en/jsonserializable.jsonserialize.php ) interface |
157+ | ` serialize() ` | string | implements the [ ` Serializable ` ] ( https://www.php.net/manual/en/serializable.serialize.php ) interface |
158+ | ` unserialize(string $data) ` | void | implements the [ ` Serializable ` ] ( https://www.php.net/manual/en/serializable.unserialize.php ) interface |
159+ | ` __serialize() ` | array | implements the [ ` Serializable ` ] ( https://www.php.net/manual/en/language.oop5.magic.php#object.serialize ) interface |
160+ | ` __unserialize(array $data) ` | void | implements the [ ` Serializable ` ] ( https://www.php.net/manual/en/language.oop5.magic.php#object.unserialize ) interface |
157161
158162## Disclaimer
159163This might be either an utterly genius or completely stupid idea - you decide. However, i like it and it works.
0 commit comments