mirror of
https://github.com/Respect/Validation.git
synced 2026-03-17 15:50:03 +01:00
65 lines
1.6 KiB
PHP
65 lines
1.6 KiB
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of Respect/Validation.
|
|
*
|
|
* (c) Alexandre Gomes Gaigalas <alexandre@gaigalas.net>
|
|
*
|
|
* For the full copyright and license information, please view the "LICENSE.md"
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Respect\Validation\Rules\Locale;
|
|
|
|
use Respect\Validation\Rules\AbstractSearcher;
|
|
|
|
/**
|
|
* Validates whether an input is subdivision code of Bulgaria or not.
|
|
*
|
|
* ISO 3166-1 alpha-2: BG
|
|
*
|
|
* @see http://www.geonames.org/BG/administrative-division-bulgaria.html
|
|
*
|
|
* @author Henrique Moody <henriquemoody@gmail.com>
|
|
*/
|
|
final class BgSubdivisionCode extends AbstractSearcher
|
|
{
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
protected function getDataSource(): array
|
|
{
|
|
return [
|
|
'01', // Blagoevgrad
|
|
'02', // Burgas
|
|
'03', // Varna
|
|
'04', // Veliko Turnovo
|
|
'05', // Vidin
|
|
'06', // Vratsa
|
|
'07', // Gabrovo
|
|
'08', // Dobrich
|
|
'09', // Kurdzhali
|
|
'10', // Kyustendil
|
|
'11', // Lovech
|
|
'12', // Montana
|
|
'13', // Pazardzhik
|
|
'14', // Pernik
|
|
'15', // Pleven
|
|
'16', // Plovdiv
|
|
'17', // Razgrad
|
|
'18', // Ruse
|
|
'19', // Silistra
|
|
'20', // Sliven
|
|
'21', // Smolyan
|
|
'22', // Sofia Region
|
|
'23', // Sofia
|
|
'24', // Stara Zagora
|
|
'25', // Turgovishte
|
|
'26', // Khaskovo
|
|
'27', // Shumen
|
|
'28', // Yambol
|
|
];
|
|
}
|
|
}
|