1: <?php
2:
3: namespace GeoIP2\Record;
4:
5: /**
6: * Contains data for the represented country associated with an IP address
7: *
8: * This class contains the country-level data associated with an IP address
9: * for the IP's represented country. The represented country is the country
10: * represented by something like a military base or embassy.
11: *
12: * This record is returned by all the end points.
13: *
14: * @property int $confidence A value from 0-100 indicating MaxMind's
15: * confidence that the country is correct. This attribute is only available
16: * from the Omni end point.
17: *
18: * @property int $geonameId The GeoName ID for the country. This attribute is
19: * returned by all end points.
20: *
21: * @property string $isoCode The {@link http://en.wikipedia.org/wiki/ISO_3166-1
22: * two-character ISO 3166-1 alpha code} for the country. This attribute is
23: * returned by all end points.
24: *
25: * @property string $name The name of the country based on the languages list
26: * passed to the constructor. This attribute is returned by all end points.
27: *
28: * @property array $names An array map where the keys are language codes and
29: * the values are names. This attribute is returned by all end points.
30: *
31: * @property string $type A string indicating the type of entity that is
32: * representing the country. Currently we only return <code>military</code>
33: * but this could expand to include other types such as <code>embassy</code>
34: * in the future. Returned by all endpoints.
35: */
36: class RepresentedCountry extends Country
37: {
38: protected $validAttributes = array(
39: 'confidence',
40: 'geonameId',
41: 'isoCode',
42: 'namespace',
43: 'type'
44: );
45: }
46: