summaryrefslogtreecommitdiffstatshomepage
path: root/tests/phpunit/includes/class-jsonserializable-object.php
blob: e2353270202a8768709d87c789225967523aed6b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
/**
 * Unit Tests: JsonSerializable_Object
 *
 * @package WordPress
 * @subpackage UnitTests
 * @since 5.3.0
 */

class JsonSerializable_Object implements JsonSerializable {

	private $data;

	public function __construct( $data ) {
		$this->data = $data;
	}

	#[ReturnTypeWillChange]
	public function jsonSerialize() {
		return $this->data;
	}
}