Overview

Namespaces

  • GeoIp2
    • Database
    • Exception
    • Model
    • Record
    • WebService
  • PHP

Classes

  • AbstractPlaceRecord
  • AbstractRecord
  • City
  • Continent
  • Country
  • Location
  • MaxMind
  • Postal
  • RepresentedCountry
  • Subdivision
  • Traits
  • Overview
  • Namespace
  • Class
  • Tree

Class RepresentedCountry

Contains data for the represented country associated with an IP address

This class contains the country-level data associated with an IP address for the IP's represented country. The represented country is the country represented by something like a military base.

GeoIp2\Record\AbstractRecord implements JsonSerializable
Extended by GeoIp2\Record\AbstractPlaceRecord
Extended by GeoIp2\Record\Country
Extended by GeoIp2\Record\RepresentedCountry
Namespace: GeoIp2\Record
Located at GeoIp2/Record/RepresentedCountry.php
Methods inherited from GeoIp2\Record\AbstractRecord
__isset(), jsonSerialize()
Magic properties summary
public integer $confidence

A value from 0-100 indicating MaxMind's confidence that the country is correct. This attribute is only available from the Insights end point.

public integer $geonameId

The GeoName ID for the country.

public string $isoCode

The two-character ISO 3166-1 alpha code for the country.

public string $name

The name of the country based on the locales list passed to the constructor.

public array $names

An array map where the keys are locale codes and the values are names.

public string $type

A string indicating the type of entity that is representing the country. Currently we only return

military

but this could expand to include other types in the future.

GeoIP2 PHP API v2.1.1 API documentation generated by ApiGen