mirror of
https://github.com/Respect/Validation.git
synced 2026-03-16 23:35:45 +01:00
55 lines
1.3 KiB
PHP
55 lines
1.3 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 Angola or not.
|
|
*
|
|
* ISO 3166-1 alpha-2: AO
|
|
*
|
|
* @see http://www.geonames.org/AO/administrative-division-angola.html
|
|
*
|
|
* @author Henrique Moody <henriquemoody@gmail.com>
|
|
*/
|
|
final class AoSubdivisionCode extends AbstractSearcher
|
|
{
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
protected function getDataSource(): array
|
|
{
|
|
return [
|
|
'BGO', // Bengo
|
|
'BGU', // Benguela province
|
|
'BIE', // Bie
|
|
'CAB', // Cabinda
|
|
'CCU', // Cuando-Cubango
|
|
'CNN', // Cunene
|
|
'CNO', // Cuanza Norte
|
|
'CUS', // Cuanza Sul
|
|
'HUA', // Huambo province
|
|
'HUI', // Huila province
|
|
'LNO', // Lunda Norte
|
|
'LSU', // Lunda Sul
|
|
'LUA', // Luanda
|
|
'MAL', // Malange
|
|
'MOX', // Moxico
|
|
'NAM', // Namibe
|
|
'UIG', // Uige
|
|
'ZAI', // Zaire
|
|
];
|
|
}
|
|
}
|