Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250530) (c39b7370636)
GeoIp2\Model\Country Class Reference
Inheritance diagram for GeoIp2\Model\Country:
GeoIp2\Model\City GeoIp2\Model\Enterprise GeoIp2\Model\Insights

Public Member Functions

 __construct (array $raw, array $locales=['en'])
 @ignore
 
 jsonSerialize ()
 

Public Attributes

Continent readonly Continent $continent
 continent data for the requested IP address
 
CountryRecord readonly CountryRecord $country
 Country data for the requested IP address.
 
MaxMind readonly MaxMind $maxmind
 data related to your MaxMind account
 
CountryRecord readonly CountryRecord $registeredCountry
 Registered country data for the requested IP address.
 
RepresentedCountry readonly RepresentedCountry $representedCountry
 Represented country data for the requested IP address.
 
Traits readonly Traits $traits
 data for the traits of the requested IP address
 

Constructor & Destructor Documentation

◆ __construct()

GeoIp2\Model\Country::__construct ( array $raw,
array $locales = ['en'] )

@ignore

Parameters
array<string,mixed>$raw
list<string>$locales

Reimplemented in GeoIp2\Model\City.

Member Function Documentation

◆ jsonSerialize()

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

Reimplemented in GeoIp2\Model\City.

Member Data Documentation

◆ $country

CountryRecord readonly CountryRecord GeoIp2\Model\Country::$country

Country data for the requested IP address.

This object represents the country where MaxMind believes the end user is located.

◆ $registeredCountry

CountryRecord readonly CountryRecord GeoIp2\Model\Country::$registeredCountry

Registered country data for the requested IP address.

This record represents the country where the ISP has registered a given IP block and may differ from the user's country.

◆ $representedCountry

RepresentedCountry readonly RepresentedCountry GeoIp2\Model\Country::$representedCountry

Represented country data for the requested IP address.

The represented country is used for things like military bases. It is only present when the represented country differs from the country.


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