MediaWiki  master
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. More...
 

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 ParserOutput, and CacheTime.


The documentation for this interface was generated from the following file: