1 <?php
2
3 namespace GeoIp2\Record;
4
5 /**
6 *
7 * Contains data for the subdivisions associated with an IP address
8 *
9 * This record is returned by all location databases and services besides
10 * Country.
11 *
12 * @property-read int|null $confidence This is a value from 0-100 indicating
13 * MaxMind's confidence that the subdivision is correct. This attribute is
14 * only available from the Insights service and the GeoIP2 Enterprise
15 * database.
16 *
17 * @property-read int|null $geonameId This is a GeoName ID for the subdivision.
18 * This attribute is returned by all location databases and services besides
19 * Country.
20 *
21 * @property-read string|null $isoCode This is a string up to three characters long
22 * contain the subdivision portion of the {@link
23 * http://en.wikipedia.org/wiki/ISO_3166-2 ISO 3166-2 code}. This attribute
24 * is returned by all location databases and services except Country.
25 *
26 * @property-read string|null $name The name of the subdivision based on the
27 * locales list passed to the constructor. This attribute is returned by all
28 * location databases and services besides Country.
29 *
30 * @property-read array|null $names An array map where the keys are locale codes
31 * and the values are names. This attribute is returned by all location
32 * databases and services besides Country.
33 */
34 class Subdivision extends AbstractPlaceRecord
35 {
36 /**
37 * @ignore
38 */
39 protected $validAttributes = array(
40 'confidence',
41 'geonameId',
42 'isoCode',
43 'names'
44 );
45 }
46