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

50 lines
1.2 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 Norway subdivision code.
*
* ISO 3166-1 alpha-2: NO
*
* @link http://www.geonames.org/NO/administrative-division-norway.html
*/
class NoSubdivisionCode extends AbstractSearcher
{
public $haystack = array(
'01', // Ostfold
'02', // Akershus
'03', // Oslo
'04', // Hedmark
'05', // Oppland
'06', // Buskerud
'07', // Vestfold
'08', // Telemark
'09', // Aust-Agder
'10', // Vest-Agder
'11', // Rogaland
'12', // Hordaland
'14', // Sogn og Fjordane
'15', // More og Romdal
'16', // Sor-Trondelag
'17', // Nord-Trondelag
'18', // Nordland
'19', // Troms
'20', // Finnmark
'21', // Svalbard
'22', // Jan Mayen
);
public $compareIdentical = true;
}