Skip to content

Commit e5a4046

Browse files
committed
:octocat:
1 parent 7fd2c28 commit e5a4046

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,9 @@ var_dump($container->what); // -> md5 hash of "some value"
135135

136136
method | return | info
137137
-------- | ---- | -----------
138-
`__construct(iterable $properties = null)` | - | calls `construct()` internally after the properties have been set to call a method with trait name as replacement constructor for each used trait
139-
`__get(string $property)` | mixed |
138+
`__construct(iterable $properties = null)` | - | calls `construct()` internally after the properties have been set
139+
(protected) `construct()` | void | calls a method with trait name as replacement constructor for each used trait
140+
`__get(string $property)` | mixed | calls `$this->{'get_'.$property}()` if such a method exists
140141
`__set(string $property, $value)` | void | calls `$this->{'set_'.$property}($value)` if such a method exists
141142
`__isset(string $property)` | bool |
142143
`__unset(string $property)` | void |
@@ -145,7 +146,7 @@ method | return | info
145146
`fromIterable(iterable $properties)` | `SettingsContainerInterface` |
146147
`toJSON(int $jsonOptions = null)` | string | accepts [JSON options constants](http://php.net/manual/json.constants.php)
147148
`fromJSON(string $json)` | `SettingsContainerInterface` |
148-
149+
`jsonSerialize()` | mixed | implements the [`JsonSerializable`](https://www.php.net/manual/en/jsonserializable.jsonserialize.php) interface
149150

150151
## Disclaimer
151152
This might be either an utterly genius or completely stupid idea - you decide. However, i like it and it works.

0 commit comments

Comments
 (0)