GeoIP2 PHP API v3.1.0

Domain
in package
implements JsonSerializable

This class provides the GeoIP2 Domain model.

Table of Contents

Interfaces

JsonSerializable

Properties

$domain  : string|null
$ipAddress  : string
$network  : string

Methods

jsonSerialize()  : array<string, mixed>|null

Properties

$domain read-only

public 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".

$ipAddress read-only

public string $ipAddress

the IP address that the data in the model is for

$network read-only

public string $network

The network in CIDR notation associated with the record. In particular, this is the largest network where all of the fields besides $ipAddress have the same value.

Methods

jsonSerialize()

public jsonSerialize() : array<string, mixed>|null
Return values
array<string, mixed>|null

        
On this page

Search results