Overview

Namespaces

  • GeoIp2
    • Compat
    • Database
    • 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:  *
 7:  * Contains data for the traits record associated with an IP address
 8:  *
 9:  * This record is returned by all the end points.
10:  *
11:  * @property int $autonomousSystemNumber The {@link
12:  * http://en.wikipedia.org/wiki/Autonomous_system_(Internet) autonomous
13:  * system number} associated with the IP address. This attribute is only
14:  * available from the City and Insights web service end points.
15:  *
16:  * @property string $autonomousSystemOrganization The organization
17:  * associated with the registered {@link
18:  * http://en.wikipedia.org/wiki/Autonomous_system_(Internet) autonomous
19:  * system number} for the IP address. This attribute is only available from
20:  * the City and Insights web service end points.
21:  *
22:  * @property string $domain The second level domain associated with the
23:  * IP address. This will be something like "example.com" or "example.co.uk",
24:  * not "foo.example.com". This attribute is only available from the
25:  * City and Insights web service end points.
26:  *
27:  * @property string $ipAddress The IP address that the data in the model
28:  * is for. If you performed a "me" lookup against the web service, this
29:  * will be the externally routable IP address for the system the code is
30:  * running on. If the system is behind a NAT, this may differ from the IP
31:  * address locally assigned to it. This attribute is returned by all end
32:  * points.
33:  *
34:  * @property boolean $isAnonymousProxy *Deprecated.* Please see our {@link
35:  * https://www.maxmind.com/en/geoip2-anonymous-ip-database GeoIP2
36:  * Anonymous IP database} to determine whether the IP address is used by an
37:  * anonymizing service.
38:  *
39:  * @property boolean $isSatelliteProvider *Deprecated.* Due to the increased
40:  * coverage by mobile carriers, very few satellite providers now serve
41:  * multiple countries. As a result, the output does not provide sufficiently
42:  * relevant data for us to maintain it.
43:  *
44:  * @property string $isp The name of the ISP associated with the IP address.
45:  * This attribute is only available from the City and Insights web service end
46:  * points.
47:  *
48:  * @property string $organization The name of the organization associated
49:  * with the IP address. This attribute is only available from the City and
50:  * Insights web service end points.
51:  *
52:  * @property string $userType <p>The user type associated with the IP
53:  *  address. This can be one of the following values:</p>
54:  *  <ul>
55:  *    <li>business
56:  *    <li>cafe
57:  *    <li>cellular
58:  *    <li>college
59:  *    <li>content_delivery_network
60:  *    <li>dialup
61:  *    <li>government
62:  *    <li>hosting
63:  *    <li>library
64:  *    <li>military
65:  *    <li>residential
66:  *    <li>router
67:  *    <li>school
68:  *    <li>search_engine_spider
69:  *    <li>traveler
70:  * </ul>
71:  * <p>
72:  *   This attribute is only available from the Insights web service end
73:  *   point.
74:  * </p>
75:  */
76: class Traits extends AbstractRecord
77: {
78:     /**
79:      * @ignore
80:      */
81:     protected $validAttributes = array(
82:         'autonomousSystemNumber',
83:         'autonomousSystemOrganization',
84:         'domain',
85:         'isAnonymousProxy',
86:         'isSatelliteProvider',
87:         'isp',
88:         'ipAddress',
89:         'organization',
90:         'userType'
91:     );
92: }
93: 
GeoIP2 PHP API v2.3.3 API documentation generated by ApiGen