MediaWiki master
MediaWiki\Json\JsonUnserializable Interface Reference

Inherits JsonSerializable.

Inherited by CacheTime.

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 MediaWiki\Parser\ParserOutput.


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