respect-validation/library/Rules/Locale/KeSubdivisionCode.php
Henrique Moody 5bdffaa51b
Apply "Generic.Arrays.ArrayIndent"
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2019-02-09 14:07:52 +01:00

84 lines
2.1 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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 Kenya or not.
*
* ISO 3166-1 alpha-2: KE
*
* @see http://www.geonames.org/KE/administrative-division-kenya.html
*
* @author Henrique Moody <henriquemoody@gmail.com>
*/
final class KeSubdivisionCode extends AbstractSearcher
{
/**
* {@inheritdoc}
*/
protected function getDataSource(): array
{
return [
'01', // Baringo
'02', // Bomet
'03', // Bungoma
'04', // Busia
'05', // Elgeyo/Marakwet
'06', // Embu
'07', // Garissa
'08', // Homa Bay
'09', // Isiolo
'10', // Kajiado
'11', // Kakamega
'12', // Kericho
'13', // Kiambu
'14', // Kilifi
'15', // Kirinyaga
'16', // Kisii
'17', // Kisumu
'18', // Kitui
'19', // Kwale
'20', // Laikipia
'21', // Lamu
'22', // Machakos
'23', // Makueni
'24', // Mandera
'25', // Marsabit
'26', // Meru
'27', // Migori
'28', // Mombasa
'29', // Muranga
'30', // Nairobi
'31', // Nakuru
'32', // Nandi
'33', // Narok
'34', // Nyamira
'35', // Nyandarua
'36', // Nyeri
'37', // Samburu
'38', // Siaya
'39', // Taita/Taveta
'40', // Tana River
'41', // Tharak-Nithi
'42', // Trans Nzoia
'43', // Turkana
'44', // Uasin Gishu
'45', // Vihiga
'46', // Wajir
'47', // West Pokot
];
}
}