Definition at line 38 of file JsonUnserializable.php.
◆ newFromJsonArray()
static MediaWiki\Json\JsonUnserializable::newFromJsonArray |
( |
JsonUnserializer |
$unserializer, |
|
|
array |
$json |
|
) |
| |
|
static |
Creates a new instance of the class and initialized it from the $json array.
- Parameters
-
JsonUnserializer | $unserializer | an instance of JsonUnserializer to use for nested properties if they need special care. |
array | $json | |
- Returns
- JsonUnserializable
Implemented in CacheTime, and ParserOutput.
The documentation for this interface was generated from the following file: