MediaWiki
REL1_39
JsonUnserializer.php
Go to the documentation of this file.
1
<?php
2
23
namespace
MediaWiki\Json
;
24
25
use InvalidArgumentException;
26
33
interface
JsonUnserializer
{
34
50
public
function
unserialize
( $json,
string
$expectedClass =
null
);
51
57
public
function
unserializeArray
( array $array ): array;
58
}
MediaWiki\Json\JsonUnserializer
Definition
JsonUnserializer.php:33
MediaWiki\Json\JsonUnserializer\unserialize
unserialize( $json, string $expectedClass=null)
Restore an instance of simple type or JsonUnserializable subclass from the JSON serialization.
MediaWiki\Json\JsonUnserializer\unserializeArray
unserializeArray(array $array)
Helper to unserialize an array of JsonUnserializable instances or simple types.
MediaWiki\Json
Definition
JsonCodec.php:22
includes
json
JsonUnserializer.php
Generated on Fri Dec 20 2024 15:34:31 for MediaWiki by
1.10.0