class Domain in Smart IP 6.2
Same name and namespace in other branches
- 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
- class \GeoIp2\Model\Domain
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\ModelView 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
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AbstractModel:: |
protected | property | ||
AbstractModel:: |
protected | function | @ignore | |
AbstractModel:: |
public | function | ||
AbstractModel:: |
public | function | @ignore | 1 |
AbstractModel:: |
public | function | @ignore | |
Domain:: |
protected | property | ||
Domain:: |
protected | property | ||
Domain:: |
public | function |
@ignore Overrides AbstractModel:: |