Overview

Namespaces

  • GeoIp2
    • Compat
    • Database
    • Exception
    • Model
    • Record
    • WebService
  • PHP

Interfaces

  • JsonSerializable
  • JSONSerializable
  • Overview
  • Namespace
  • Class
  • Tree
 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: }
28: 
GeoIP2 PHP API v2.3.2 API documentation generated by ApiGen