MediaWiki REL1_40
JsonUnserializer.php
Go to the documentation of this file.
1<?php
2
23namespace MediaWiki\Json;
24
25use InvalidArgumentException;
26
34
50 public function unserialize( $json, string $expectedClass = null );
51
57 public function unserializeArray( array $array ): array;
58}
unserialize( $json, string $expectedClass=null)
Restore an instance of simple type or JsonUnserializable subclass from the JSON serialization.
unserializeArray(array $array)
Helper to unserialize an array of JsonUnserializable instances or simple types.