GeoIP2 PHP API v2.4.4
  • Namespace
  • Class

Namespaces

  • GeoIp2
    • Database
    • Exception
    • Model
    • Record
    • WebService
  • MaxMind
    • Db
      • Reader
  • PHP

Classes

  • GeoIp2\Database\Reader
  • GeoIp2\Model\AnonymousIp
  • 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\WebService\Client
  • MaxMind\Db\Reader
  • MaxMind\Db\Reader\Decoder
  • MaxMind\Db\Reader\Metadata
  • MaxMind\Db\Reader\Util

Interfaces

  • GeoIp2\ProviderInterface

Exceptions

  • BadFunctionCallException
  • BadMethodCallException
  • Exception
  • GeoIp2\Exception\AddressNotFoundException
  • GeoIp2\Exception\AuthenticationException
  • GeoIp2\Exception\GeoIp2Exception
  • GeoIp2\Exception\HttpException
  • GeoIp2\Exception\InvalidRequestException
  • GeoIp2\Exception\OutOfQueriesException
  • InvalidArgumentException
  • LogicException
  • MaxMind\Db\Reader\InvalidDatabaseException
 1 <?php
 2 
 3 namespace GeoIp2\Model;
 4 
 5 /**
 6  * This class provides the GeoIP2 Anonymous IP model.
 7  *
 8  * @property-read boolean $isAnonymous This is true if the IP address belongs to
 9  *     any sort of anonymous network.
10  *
11  * @property-read boolean $isAnonymousVpn This is true if the IP address belongs to
12  *     an anonymous VPN system.
13  *
14  * @property-read boolean $isHostingProvider This is true if the IP address belongs
15  *     to a hosting provider.
16  *
17  * @property-read boolean $isPublicProxy This is true if the IP address belongs to
18  *     a public proxy.
19  *
20  * @property-read boolean $isTorExitNode This is true if the IP address is a Tor
21  *     exit node.
22  *
23  * @property-read string $ipAddress The IP address that the data in the model is
24  *     for.
25  *
26  */
27 class AnonymousIp extends AbstractModel
28 {
29     protected $isAnonymous;
30     protected $isAnonymousVpn;
31     protected $isHostingProvider;
32     protected $isPublicProxy;
33     protected $isTorExitNode;
34     protected $ipAddress;
35 
36     /**
37      * @ignore
38      */
39     public function __construct($raw)
40     {
41         parent::__construct($raw);
42 
43         $this->isAnonymous = $this->get('is_anonymous');
44         $this->isAnonymousVpn = $this->get('is_anonymous_vpn');
45         $this->isHostingProvider = $this->get('is_hosting_provider');
46         $this->isPublicProxy = $this->get('is_public_proxy');
47         $this->isTorExitNode = $this->get('is_tor_exit_node');
48         $this->ipAddress = $this->get('ip_address');
49     }
50 }
51 
GeoIP2 PHP API v2.4.4 API documentation generated by ApiGen