mirror of
https://github.com/Respect/Validation.git
synced 2026-03-18 08:09:51 +01:00
43 lines
1 KiB
PHP
43 lines
1 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 Myanmar [Burma] subdivision code.
|
|
*
|
|
* ISO 3166-1 alpha-2: MM
|
|
*
|
|
* @link http://www.geonames.org/MM/administrative-division-myanmar.html
|
|
*/
|
|
class MmSubdivisionCode extends AbstractSearcher
|
|
{
|
|
public $haystack = array(
|
|
'01', // Sagaing
|
|
'02', // Bago
|
|
'03', // Magway
|
|
'04', // Mandalay
|
|
'05', // Tanintharyi
|
|
'06', // Yangon
|
|
'07', // Ayeyarwady
|
|
'11', // Kachin State
|
|
'12', // Kayah State
|
|
'13', // Kayin State
|
|
'14', // Chin State
|
|
'15', // Mon State
|
|
'16', // Rakhine State
|
|
'17', // Shan State
|
|
);
|
|
|
|
public $compareIdentical = true;
|
|
}
|