MDL-48766 lib: Import MaxMind GeoIP2 PHP API
[moodle.git] / lib / maxmind / GeoIp2 / Compat / JsonSerializable.php
CommitLineData
eacc36a2
DP
1<?php
2
3namespace GeoIp2\Compat;
4
5// @codingStandardsIgnoreFile
6
7/**
8 * This interface exists to provide backwards compatibility with PHP 5.3
9 *
10 * This should _not_ be used by any third-party code.
11 *
12 * @ignore
13 */
14if (interface_exists('JsonSerializable')) {
15 interface JsonSerializable extends \JsonSerializable
16 {
17 }
18} else {
19 interface JsonSerializable
20 {
21 /**
22 * Returns data that can be serialized by json_encode
23 * @ignore
24 */
25 public function jsonSerialize();
26 }
27}