Commit | Line | Data |
---|---|---|
eacc36a2 DP |
1 | <?php |
2 | ||
3 | namespace 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 | */ | |
14 | if (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 | } |