Overview

Namespaces

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