<?php // phpcs:ignore - @generation-checksum JP-47-1671
/**
 * Country Class for Japan (JP).
 *
 * State/province count: 47
 * City count: 1671
 * City count per state/province:
 * - 39: 110 cities
 * - 47: 25 cities
 * - 46: 46 cities
 * - 45: 17 cities
 * - 44: 26 cities
 * - 43: 27 cities
 * - 42: 22 cities
 * - 41: 16 cities
 * - 40: 56 cities
 * - 38: 20 cities
 * - 37: 15 cities
 * - 36: 17 cities
 * - 35: 21 cities
 * - 34: 30 cities
 * - 33: 25 cities
 * - 32: 16 cities
 * - 30: 16 cities
 * - 29: 21 cities
 * - 28: 53 cities
 * - 27: 57 cities
 * - 26: 24 cities
 * - 25: 24 cities
 * - 24: 28 cities
 * - 23: 70 cities
 * - 22: 44 cities
 * - 21: 35 cities
 * - 20: 40 cities
 * - 19: 23 cities
 * - 18: 19 cities
 * - 17: 18 cities
 * - 16: 21 cities
 * - 15: 46 cities
 * - 14: 40 cities
 * - 13: 63 cities
 * - 12: 65 cities
 * - 11: 83 cities
 * - 10: 31 cities
 * - 09: 33 cities
 * - 08: 72 cities
 * - 07: 30 cities
 * - 06: 27 cities
 * - 05: 27 cities
 * - 04: 33 cities
 * - 03: 32 cities
 * - 31: 5 cities
 * - 02: 21 cities
 * - 01: 81 cities
 *
 * @package WP_Ultimo\Country
 * @since 2.0.11
 */

namespace WP_Ultimo\Country;

// Exit if accessed directly
defined('ABSPATH') || exit;

/**
 * Country Class for Japan (JP).
 *
 * IMPORTANT:
 * This file is generated by build scripts, do not
 * change it directly or your changes will be LOST!
 *
 * @since 2.0.11
 *
 * @property-read string $code
 * @property-read string $currency
 * @property-read int $phone_code
 */
class Country_JP extends Country {

	use \WP_Ultimo\Traits\Singleton;

	/**
	 * General country attributes.
	 *
	 * This might be useful, might be not.
	 * In case of doubt, keep it.
	 *
	 * @since 2.0.11
	 * @var array
	 */
	protected $attributes = [
		'country_code' => 'JP',
		'currency'     => 'JPY',
		'phone_code'   => 81,
	];

	/**
	 * The type of nomenclature used to refer to the country sub-divisions.
	 *
	 * @since 2.0.11
	 * @var string
	 */
	protected $state_type = 'prefecture';

	/**
	 * Return the country name.
	 *
	 * @since 2.0.11
	 * @return string
	 */
	public function get_name() {

		return __('Japan', 'wp-multisite-waas');
	}

	/**
	 * Returns the list of states for JP.
	 *
	 * @since 2.0.11
	 * @return array The list of state/provinces for the country.
	 */
	protected function states() {

		return [
			'10' => __('Gunma Prefecture', 'wp-multisite-waas'),
			'11' => __('Saitama Prefecture', 'wp-multisite-waas'),
			'12' => __('Chiba Prefecture', 'wp-multisite-waas'),
			'13' => __('Tokyo', 'wp-multisite-waas'),
			'14' => __('Kanagawa Prefecture', 'wp-multisite-waas'),
			'15' => __('Niigata Prefecture', 'wp-multisite-waas'),
			'16' => __('Toyama Prefecture', 'wp-multisite-waas'),
			'17' => __('Ishikawa Prefecture', 'wp-multisite-waas'),
			'18' => __('Fukui Prefecture', 'wp-multisite-waas'),
			'19' => __('Yamanashi Prefecture', 'wp-multisite-waas'),
			'20' => __('Nagano Prefecture', 'wp-multisite-waas'),
			'21' => __('Gifu Prefecture', 'wp-multisite-waas'),
			'22' => __('Shizuoka Prefecture', 'wp-multisite-waas'),
			'23' => __('Aichi Prefecture', 'wp-multisite-waas'),
			'24' => __('Mie Prefecture', 'wp-multisite-waas'),
			'25' => __('Shiga Prefecture', 'wp-multisite-waas'),
			'26' => __('Kyōto Prefecture', 'wp-multisite-waas'),
			'27' => __('Ōsaka Prefecture', 'wp-multisite-waas'),
			'28' => __('Hyōgo Prefecture', 'wp-multisite-waas'),
			'29' => __('Nara Prefecture', 'wp-multisite-waas'),
			'30' => __('Wakayama Prefecture', 'wp-multisite-waas'),
			'31' => __('Tottori Prefecture', 'wp-multisite-waas'),
			'32' => __('Shimane Prefecture', 'wp-multisite-waas'),
			'33' => __('Okayama Prefecture', 'wp-multisite-waas'),
			'34' => __('Hiroshima Prefecture', 'wp-multisite-waas'),
			'35' => __('Yamaguchi Prefecture', 'wp-multisite-waas'),
			'36' => __('Tokushima Prefecture', 'wp-multisite-waas'),
			'37' => __('Kagawa Prefecture', 'wp-multisite-waas'),
			'38' => __('Ehime Prefecture', 'wp-multisite-waas'),
			'39' => __('Kōchi Prefecture', 'wp-multisite-waas'),
			'40' => __('Fukuoka Prefecture', 'wp-multisite-waas'),
			'41' => __('Saga Prefecture', 'wp-multisite-waas'),
			'42' => __('Nagasaki Prefecture', 'wp-multisite-waas'),
			'43' => __('Kumamoto Prefecture', 'wp-multisite-waas'),
			'44' => __('Ōita Prefecture', 'wp-multisite-waas'),
			'45' => __('Miyazaki Prefecture', 'wp-multisite-waas'),
			'46' => __('Kagoshima Prefecture', 'wp-multisite-waas'),
			'47' => __('Okinawa Prefecture', 'wp-multisite-waas'),
			'05' => __('Akita Prefecture', 'wp-multisite-waas'),
			'02' => __('Aomori Prefecture', 'wp-multisite-waas'),
			'07' => __('Fukushima Prefecture', 'wp-multisite-waas'),
			'01' => __('Hokkaidō Prefecture', 'wp-multisite-waas'),
			'08' => __('Ibaraki Prefecture', 'wp-multisite-waas'),
			'03' => __('Iwate Prefecture', 'wp-multisite-waas'),
			'04' => __('Miyagi Prefecture', 'wp-multisite-waas'),
			'09' => __('Tochigi Prefecture', 'wp-multisite-waas'),
			'06' => __('Yamagata Prefecture', 'wp-multisite-waas'),
		];
	}
}
