MediaWiki REL1_37
MediaWiki\Json\JsonUnserializable Interface Reference
Inheritance diagram for MediaWiki\Json\JsonUnserializable:
Collaboration diagram for MediaWiki\Json\JsonUnserializable:

Static Public Member Functions

static newFromJsonArray (JsonUnserializer $unserializer, array $json)
 Creates a new instance of the class and initialized it from the $json array.
 

Detailed Description

Definition at line 38 of file JsonUnserializable.php.

Member Function Documentation

◆ 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$unserializeran 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: