Overview

Namespaces

  • GeoIp2
    • Database
    • Exception
    • Model
    • Record
    • Test
      • Database
      • Model
      • WebService
    • WebService
  • MaxMind
    • MinFraud
      • Model
  • PHP

Classes

  • GeoIp2\Database\Reader
  • GeoIp2\Model\AnonymousIp
  • GeoIp2\Model\Asn
  • GeoIp2\Model\City
  • GeoIp2\Model\ConnectionType
  • GeoIp2\Model\Country
  • GeoIp2\Model\Domain
  • GeoIp2\Model\Enterprise
  • GeoIp2\Model\Insights
  • GeoIp2\Model\Isp
  • GeoIp2\Record\AbstractPlaceRecord
  • GeoIp2\Record\AbstractRecord
  • GeoIp2\Record\City
  • GeoIp2\Record\Continent
  • GeoIp2\Record\Country
  • GeoIp2\Record\Location
  • GeoIp2\Record\MaxMind
  • GeoIp2\Record\Postal
  • GeoIp2\Record\RepresentedCountry
  • GeoIp2\Record\Subdivision
  • GeoIp2\Record\Traits
  • GeoIp2\Test\Database\ReaderTest
  • GeoIp2\Test\Model\CountryTest
  • GeoIp2\Test\Model\InsightsTest
  • GeoIp2\Test\Model\NameTest
  • GeoIp2\Test\WebService\ClientTest
  • GeoIp2\WebService\Client
  • MaxMind\MinFraud
  • MaxMind\MinFraud\Model\Address
  • MaxMind\MinFraud\Model\BillingAddress
  • MaxMind\MinFraud\Model\CreditCard
  • MaxMind\MinFraud\Model\Device
  • MaxMind\MinFraud\Model\Disposition
  • MaxMind\MinFraud\Model\Email
  • MaxMind\MinFraud\Model\Factors
  • MaxMind\MinFraud\Model\GeoIp2Country
  • MaxMind\MinFraud\Model\GeoIp2Location
  • MaxMind\MinFraud\Model\Insights
  • MaxMind\MinFraud\Model\IpAddress
  • MaxMind\MinFraud\Model\Issuer
  • MaxMind\MinFraud\Model\Score
  • MaxMind\MinFraud\Model\ScoreIpAddress
  • MaxMind\MinFraud\Model\ShippingAddress
  • MaxMind\MinFraud\Model\Subscores
  • MaxMind\MinFraud\Model\Warning

Interfaces

  • GeoIp2\ProviderInterface
  • JsonSerializable
  • Throwable

Exceptions

  • BadFunctionCallException
  • BadMethodCallException
  • Exception
  • GeoIp2\Exception\AddressNotFoundException
  • GeoIp2\Exception\AuthenticationException
  • GeoIp2\Exception\GeoIp2Exception
  • GeoIp2\Exception\HttpException
  • GeoIp2\Exception\InvalidRequestException
  • GeoIp2\Exception\OutOfQueriesException
  • InvalidArgumentException
  • LogicException
  • Overview
  • Namespace
  • Class
 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: 
minFraud PHP API v1.4.0 API documentation generated by ApiGen