Country
in package
implements
JsonSerializable
Model class for the data returned by GeoIP2 Country web service and database.
See https://dev.maxmind.com/geoip/docs/web-services?lang=en for more details.
Table of Contents
Interfaces
- JsonSerializable
Properties
- $continent : Continent
- $country : Country
- $maxmind : MaxMind
- $registeredCountry : Country
- $representedCountry : RepresentedCountry
- $traits : Traits
Methods
- jsonSerialize() : array<string|int, mixed>|null
Properties
$continent read-only
public
Continent
$continent
continent data for the requested IP address
$country read-only
public
Country
$country
Country data for the requested IP address. This object represents the country where MaxMind believes the end user is located.
$maxmind read-only
public
MaxMind
$maxmind
data related to your MaxMind account
$registeredCountry read-only
public
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 read-only
public
RepresentedCountry
$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.
$traits read-only
public
Traits
$traits
data for the traits of the requested IP address
Methods
jsonSerialize()
public
jsonSerialize() : array<string|int, mixed>|null