Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
brconverter.php
1<?php
2
4
15final class BrConverter extends BaseConverter
16{
18 private const STATE_ADMIN_LEVEL = 4;
19
21 private const DISTRICT_ADMIN_LEVEL = 9;
22
24 private const SUB_DISTRICT_ADMIN_LEVEL = 10;
25
29 protected function getAdminLevel1(): ?array
30 {
31 return $this->getBoundaryAdministrativeByLevel(static::STATE_ADMIN_LEVEL);
32 }
33
37 protected function getSubLocality(): ?array
38 {
39 return $this->getBoundaryAdministrativeByLevel(static::DISTRICT_ADMIN_LEVEL);
40 }
41
45 protected function getSubLocalityLevel1(): ?array
46 {
47 return $this->getBoundaryAdministrativeByLevel(static::SUB_DISTRICT_ADMIN_LEVEL);
48 }
49}