* * 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 South Korea or not. * * ISO 3166-1 alpha-2: KR * * @see http://www.geonames.org/KR/administrative-division-south-korea.html * * @author Henrique Moody */ final class KrSubdivisionCode extends AbstractSearcher { /** * {@inheritdoc} */ protected function getDataSource(): array { return [ '11', // Seoul Special City '26', // Busan Metropolitan City '27', // Daegu Metropolitan City '28', // Incheon Metropolitan City '29', // Gwangju Metropolitan City '30', // Daejeon Metropolitan City '31', // Ulsan Metropolitan City '41', // Gyeonggi-do '42', // Gangwon-do '43', // Chungcheongbuk-do '44', // Chungcheongnam-do '45', // Jeollabuk-do '46', // Jeollanam-do '47', // Gyeongsangbuk-do '48', // Gyeongsangnam-do '49', // Jeju-do '50', // Sejong ]; } }