Overview

Namespaces

  • GeoIP2
    • Exception
    • Model
    • Record
    • WebService
  • PHP

Classes

  • AbstractPlaceRecord
  • AbstractRecord
  • City
  • Continent
  • Country
  • Location
  • MaxMind
  • Postal
  • RepresentedCountry
  • Subdivision
  • Traits
  • Overview
  • Namespace
  • Class
  • Tree
 1: <?php
 2: 
 3: namespace GeoIP2\Record;
 4: 
 5: /**
 6:  * Contains data for the postal record associated with an IP address
 7:  *
 8:  * This record is returned by all the end points except the Country end point.
 9:  *
10:  * @property string $code The postal code of the location. Postal codes are
11:  * not available for all countries. In some countries, this will only contain
12:  * part of the postal code. This attribute is returned by all end points
13:  * except the Country end point.
14:  *
15:  * @property int $confidence A value from 0-100 indicating MaxMind's
16:  * confidence that the postal code is correct. This attribute is only
17:  * available from the Omni end point.
18:  */
19: class Postal extends AbstractRecord
20: {
21:     /**
22:      * @ignore
23:      */
24:     protected $validAttributes = array('code', 'confidence');
25: }
26: 
API documentation generated by ApiGen 2.8.0