2013-05-07 17:02:39 +00:00
|
|
|
<?php
|
|
|
|
|
2013-07-10 22:24:40 +00:00
|
|
|
namespace GeoIp2\Record;
|
2013-05-07 17:06:57 +00:00
|
|
|
|
2013-05-10 17:47:11 +00:00
|
|
|
/**
|
|
|
|
* 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
|
2014-07-21 14:59:20 +00:00
|
|
|
* represented by something like a military base.
|
2013-05-10 17:47:11 +00:00
|
|
|
*
|
|
|
|
* @property int $confidence A value from 0-100 indicating MaxMind's
|
|
|
|
* confidence that the country is correct. This attribute is only available
|
2014-07-15 21:19:30 +00:00
|
|
|
* from the Insights end point.
|
2013-05-10 17:47:11 +00:00
|
|
|
*
|
2014-07-21 14:59:20 +00:00
|
|
|
* @property int $geonameId The GeoName ID for the country.
|
2013-05-10 17:47:11 +00:00
|
|
|
*
|
|
|
|
* @property string $isoCode The {@link http://en.wikipedia.org/wiki/ISO_3166-1
|
2014-07-21 14:59:20 +00:00
|
|
|
* two-character ISO 3166-1 alpha code} for the country.
|
2013-05-10 17:47:11 +00:00
|
|
|
*
|
2013-10-17 19:58:21 +00:00
|
|
|
* @property string $name The name of the country based on the locales list
|
2014-07-21 14:59:20 +00:00
|
|
|
* passed to the constructor.
|
2013-05-10 17:47:11 +00:00
|
|
|
*
|
2013-10-17 17:28:31 +00:00
|
|
|
* @property array $names An array map where the keys are locale codes and
|
2014-07-21 14:59:20 +00:00
|
|
|
* the values are names.
|
2013-05-10 17:47:11 +00:00
|
|
|
*
|
|
|
|
* @property string $type A string indicating the type of entity that is
|
|
|
|
* representing the country. Currently we only return <code>military</code>
|
2014-07-21 14:59:20 +00:00
|
|
|
* but this could expand to include other types in the future.
|
2013-05-10 17:47:11 +00:00
|
|
|
*/
|
2013-05-07 21:23:19 +00:00
|
|
|
class RepresentedCountry extends Country
|
2013-05-07 17:06:57 +00:00
|
|
|
{
|
2013-05-09 14:29:29 +00:00
|
|
|
protected $validAttributes = array(
|
|
|
|
'confidence',
|
|
|
|
'geonameId',
|
|
|
|
'isoCode',
|
|
|
|
'namespace',
|
|
|
|
'type'
|
|
|
|
);
|
|
|
|
}
|