respect-validation/library/Rules/SubdivisionCode.php

34 lines
726 B
PHP
Raw Normal View History

2015-09-21 18:28:59 +02:00
<?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);
2015-09-21 18:28:59 +02:00
namespace Respect\Validation\Rules;
/**
* Validates country subdivision codes according to ISO 3166-2.
*
* @see http://en.wikipedia.org/wiki/ISO_3166-2
* @see http://www.geonames.org/countries/
*
* @author Henrique Moody <henriquemoody@gmail.com>
2015-09-21 18:28:59 +02:00
*/
final class SubdivisionCode extends AbstractLocaleWrapper
2015-09-21 18:28:59 +02:00
{
/**
* {@inheritDoc}
*/
protected function getSuffix(): string
2015-09-21 18:28:59 +02:00
{
return 'SubdivisionCode';
2015-09-21 18:28:59 +02:00
}
}