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 the end points except the Country end point.
10: *
11: * @property int $confidence This is a value from 0-100 indicating MaxMind's
12: * confidence that the subdivision is correct. This attribute is only
13: * available from the Omni end point.
14: *
15: * @property int $geonameId This is a GeoName ID for the subdivision. This
16: * attribute is returned by all end points except Country.
17: *
18: * @property string $isoCode This is a string up to three characters long
19: * contain the subdivision portion of the {@link
20: * http://en.wikipedia.org/wiki/ISO_3166-2 ISO 3166-2 code}. This attribute
21: * is returned by all end points except Country.
22: *
23: * @property string $name The name of the subdivision based on the locales
24: * list passed to the constructor. This attribute is returned by all end
25: * points except Country.
26: *
27: * @property array $names An array map where the keys are locale codes and
28: * the values are names. This attribute is returned by all end points except
29: * Country.
30: */
31: class Subdivision extends AbstractPlaceRecord
32: {
33: /**
34: * @ignore
35: */
36: protected $validAttributes = array(
37: 'confidence',
38: 'geonameId',
39: 'isoCode',
40: 'names'
41: );
42: }
43: