* * 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 Tanzania or not. * * ISO 3166-1 alpha-2: TZ * * @see http://www.geonames.org/TZ/administrative-division-tanzania.html * * @author Henrique Moody */ final class TzSubdivisionCode extends AbstractSearcher { /** * {@inheritdoc} */ protected function getDataSource(): array { return [ '01', // Arusha '02', // Dar es Salaam '03', // Dodoma '04', // Iringa '05', // Kagera '06', // Pemba North '07', // Zanzibar North '08', // Kigoma '09', // Kilimanjaro '10', // Pemba South '11', // Zanzibar Central/South '12', // Lindi '13', // Mara '14', // Mbeya '15', // Zanzibar Urban/West '16', // Morogoro '17', // Mtwara '18', // Mwanza '19', // Pwani '20', // Rukwa '21', // Ruvuma '22', // Shinyanga '23', // Singida '24', // Tabora '25', // Tanga '26', // Manyara '27', // Geita '28', // Katavi '29', // Njombe '30', // Simiyu ]; } }