You are here

class Domain in Smart IP 6.2

Same name and namespace in other branches
  1. 7.2 includes/vendor/geoip2/geoip2/src/Model/Domain.php \GeoIp2\Model\Domain

This class provides the GeoIP2 Domain model.

@property string|null $domain The second level domain associated with the IP address. This will be something like "example.com" or "example.co.uk", not "foo.example.com".

@property string $ipAddress The IP address that the data in the model is for.

Hierarchy

  • class \GeoIp2\Model\AbstractModel implements \GeoIp2\Compat\JsonSerializable

Expanded class hierarchy of Domain

1 string reference to 'Domain'
Reader::domain in includes/vendor/geoip2/geoip2/src/Database/Reader.php
This method returns a GeoIP2 Domain model.

File

includes/vendor/geoip2/geoip2/src/Model/Domain.php, line 16

Namespace

GeoIp2\Model
View source
class Domain extends AbstractModel {
  protected $domain;
  protected $ipAddress;

  /**
   * @ignore
   */
  public function __construct($raw) {
    parent::__construct($raw);
    $this->domain = $this
      ->get('domain');
    $this->ipAddress = $this
      ->get('ip_address');
  }

}

Members

Namesort descending Modifiers Type Description Overrides
AbstractModel::$raw protected property
AbstractModel::get protected function @ignore
AbstractModel::jsonSerialize public function
AbstractModel::__get public function @ignore 1
AbstractModel::__isset public function @ignore
Domain::$domain protected property
Domain::$ipAddress protected property
Domain::__construct public function @ignore Overrides AbstractModel::__construct