Overview

Namespaces

  • GeoIp2
    • Database
    • Exception
    • Model
    • Record
    • WebService
  • PHP

Classes

  • AnonymousIp
  • City
  • ConnectionType
  • Country
  • Domain
  • Insights
  • Isp
  • Overview
  • Namespace
  • Class
  • Tree
 1: <?php
 2: 
 3: namespace GeoIp2\Model;
 4: 
 5: /**
 6:  * This class provides the GeoIP2 Domain model.
 7:  *
 8:  * @property string $domain The second level domain associated with the IP
 9:  *     address. This will be something like "example.com" or "example.co.uk",
10:  *     not "foo.example.com".
11:  *
12:  * @property string $ipAddress The IP address that the data in the model is
13:  *     for.
14:  *
15:  */
16: class Domain extends AbstractModel
17: {
18:     protected $domain;
19:     protected $ipAddress;
20: 
21:     /**
22:      * @ignore
23:      */
24:     public function __construct($raw)
25:     {
26:         parent::__construct($raw);
27: 
28:         $this->domain = $this->get('domain');
29:         $this->ipAddress = $this->get('ip_address');
30:     }
31: }
32: 
GeoIP2 PHP API v2.1.1 API documentation generated by ApiGen