1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/* |
4
|
|
|
* This file is part of Respect/Validation. |
5
|
|
|
* |
6
|
|
|
* (c) Alexandre Gomes Gaigalas <[email protected]> |
7
|
|
|
* |
8
|
|
|
* For the full copyright and license information, please view the "LICENSE.md" |
9
|
|
|
* file that was distributed with this source code. |
10
|
|
|
*/ |
11
|
|
|
|
12
|
|
|
declare(strict_types=1); |
13
|
|
|
|
14
|
|
|
namespace Respect\Validation\Rules\Locale; |
15
|
|
|
|
16
|
|
|
use Respect\Validation\Rules\AbstractSearcher; |
17
|
|
|
|
18
|
|
|
/** |
19
|
|
|
* Validates whether an input is subdivision code of Moldova or not. |
20
|
|
|
* |
21
|
|
|
* ISO 3166-1 alpha-2: MD |
22
|
|
|
* |
23
|
|
|
* @see http://www.geonames.org/MD/administrative-division-moldova.html |
24
|
|
|
* |
25
|
|
|
* @author Henrique Moody <[email protected]> |
26
|
|
|
*/ |
27
|
|
|
final class MdSubdivisionCode extends AbstractSearcher |
28
|
|
|
{ |
29
|
|
|
/** |
30
|
|
|
* {@inheritdoc} |
31
|
|
|
*/ |
32
|
|
|
protected function getDataSource(): array |
33
|
|
|
{ |
34
|
|
|
return [ |
35
|
|
|
'AN', // Raionul Anenii Noi |
36
|
|
|
'BA', // Municipiul Bălţi |
37
|
|
|
'BD', // Tighina |
38
|
|
|
'BR', // Raionul Briceni |
39
|
|
|
'BS', // Raionul Basarabeasca |
40
|
|
|
'CA', // Cahul |
41
|
|
|
'CL', // Raionul Călăraşi |
42
|
|
|
'CM', // Raionul Cimişlia |
43
|
|
|
'CR', // Raionul Criuleni |
44
|
|
|
'CS', // Raionul Căuşeni |
45
|
|
|
'CT', // Raionul Cantemir |
46
|
|
|
'CU', // Municipiul Chişinău |
47
|
|
|
'DO', // Donduşeni |
48
|
|
|
'DR', // Raionul Drochia |
49
|
|
|
'DU', // Dubăsari |
50
|
|
|
'ED', // Raionul Edineţ |
51
|
|
|
'FA', // Făleşti |
52
|
|
|
'FL', // Floreşti |
53
|
|
|
'GA', // U.T.A. Găgăuzia |
54
|
|
|
'GL', // Raionul Glodeni |
55
|
|
|
'HI', // Hînceşti |
56
|
|
|
'IA', // Ialoveni |
57
|
|
|
'LE', // Leova |
58
|
|
|
'NI', // Nisporeni |
59
|
|
|
'OC', // Raionul Ocniţa |
60
|
|
|
'OR', // Raionul Orhei |
61
|
|
|
'RE', // Rezina |
62
|
|
|
'RI', // Rîşcani |
63
|
|
|
'SD', // Raionul Şoldăneşti |
64
|
|
|
'SI', // Sîngerei |
65
|
|
|
'SN', // Stînga Nistrului |
66
|
|
|
'SO', // Soroca |
67
|
|
|
'ST', // Raionul Străşeni |
68
|
|
|
'SV', // Raionul Ştefan Vodă |
69
|
|
|
'TA', // Raionul Taraclia |
70
|
|
|
'TE', // Teleneşti |
71
|
|
|
'UN', // Raionul Ungheni |
72
|
|
|
]; |
73
|
|
|
} |
74
|
|
|
} |
75
|
|
|
|