respect-validation/library/Rules/SubdivisionCode/MwSubdivisionCode.php
2015-09-21 13:27:25 -03:00

60 lines
1.4 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.
*/
namespace Respect\Validation\Rules\SubdivisionCode;
use Respect\Validation\Rules\AbstractSearcher;
/**
* Validator for Malawi subdivision code.
*
* ISO 3166-1 alpha-2: MW
*
* @link http://www.geonames.org/MW/administrative-division-malawi.html
*/
class MwSubdivisionCode extends AbstractSearcher
{
public $haystack = array(
'C', // Central
'N', // Northern
'S', // Southern
'BA', // Balaka
'BL', // Blantyre
'CK', // Chikwawa
'CR', // Chiradzulu
'CT', // Chitipa
'DE', // Dedza
'DO', // Dowa
'KR', // Karonga
'KS', // Kasungu
'LI', // Lilongwe
'LK', // Likoma
'MC', // Mchinji
'MG', // Mangochi
'MH', // Machinga
'MU', // Mulanje
'MW', // Mwanza
'MZ', // Mzimba
'NB', // Nkhata Bay
'NE', // Neno
'NI', // Ntchisi
'NK', // Nkhotakota
'NS', // Nsanje
'NU', // Ntcheu
'PH', // Phalombe
'RU', // Rumphi
'SA', // Salima
'TH', // Thyolo
'ZO', // Zomba
);
public $compareIdentical = true;
}