summaryrefslogtreecommitdiff
blob: d3d573324cefdd0af06418faebb5e358acedd41f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
declare( strict_types = 1 );

namespace MediaWiki\Extension\Translate\Utilities\Json;

/**
 * Identify classes that can unserialize themselves from an array
 * Remove once we need to support only MW >= 1.36
 * See Change-Id: I5433090ae8e2b3f2a4590cc404baf838025546ce
 *
 * @license GPL-2.0-or-later
 * @since 2020.12
 */
interface JsonUnserializable {
	/** Restore an array to an instance of the current class */
	public static function newFromJsonArray( array $json );
}