16 private const FEDERAL_SUBJECT_ADMIN_LEVEL = 4;
19 private const FEDERAL_SUBJECT_MUNICIPAL_DISTRICT_ADMIN_LEVEL = 6;
22 private const CITY_FEDERAL_SUBJECT_MUNICIPAL_DISTRICT_ADMIN_LEVEL = 8;
29 private const MOSCOW_STATE_RELATION_ID = 102269;
36 private const SAINT_PETERSBURG_STATE_RELATION_ID = 337422;
43 private const SEVASTOPOL_STATE_RELATION_ID = 1574364;
50 foreach ($this->addressComponents as $addressComponent)
53 && $addressComponent[
'admin_level'] === static::FEDERAL_SUBJECT_ADMIN_LEVEL
56 return $addressComponent;
69 ? static::CITY_FEDERAL_SUBJECT_MUNICIPAL_DISTRICT_ADMIN_LEVEL
70 : static::FEDERAL_SUBJECT_MUNICIPAL_DISTRICT_ADMIN_LEVEL;
72 foreach ($this->addressComponents as $addressComponent)
75 && $addressComponent[
'admin_level'] === $municipalDistrictAdminLevel
78 return $addressComponent;
91 static::MOSCOW_STATE_RELATION_ID,
92 static::SAINT_PETERSBURG_STATE_RELATION_ID,
93 static::SEVASTOPOL_STATE_RELATION_ID,