Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250706) (a6b17d8f6bd)
GeoIp2\Model\Domain Class Reference
Inheritance diagram for GeoIp2\Model\Domain:

Public Member Functions

 __construct (array $raw)
 @ignore
 
 jsonSerialize ()
 

Public Attributes

string null readonly string $domain
 The second level domain associated with the IP address.
 
string readonly string $ipAddress
 the IP address that the data in the model is for
 
string readonly string $network
 The network in CIDR notation associated with the record.
 

Constructor & Destructor Documentation

◆ __construct()

GeoIp2\Model\Domain::__construct ( array $raw)

@ignore

Parameters
array<string,mixed>$raw

Member Function Documentation

◆ jsonSerialize()

GeoIp2\Model\Domain::jsonSerialize ( )
Return values
array<string,mixed>|null

Member Data Documentation

◆ $domain

string null readonly string GeoIp2\Model\Domain::$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".

◆ $network

string readonly string GeoIp2\Model\Domain::$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.


The documentation for this class was generated from the following file: