<?php // phpcs:ignore - @generation-checksum CN-34-1296
/**
 * Country Class for China (CN).
 *
 * State/province count: 34
 * City count: 1296
 * City count per state/province:
 * - HN: 118 cities
 * - FJ: 111 cities
 * - SD: 90 cities
 * - GD: 72 cities
 * - HL: 71 cities
 * - TJ: 69 cities
 * - HB: 55 cities
 * - HA: 55 cities
 * - GZ: 54 cities
 * - JL: 52 cities
 * - TW: 52 cities
 * - LN: 51 cities
 * - SC: 49 cities
 * - ZJ: 41 cities
 * - HE: 39 cities
 * - XJ: 37 cities
 * - AH: 37 cities
 * - NM: 33 cities
 * - YN: 29 cities
 * - GX: 28 cities
 * - GS: 20 cities
 * - CQ: 18 cities
 * - SX: 18 cities
 * - JX: 16 cities
 * - SN: 14 cities
 * - HI: 14 cities
 * - XZ: 13 cities
 * - JS: 13 cities
 * - BJ: 8 cities
 * - QH: 8 cities
 * - NX: 7 cities
 * - SH: 4 cities
 *
 * @package WP_Ultimo\Country
 * @since 2.0.11
 */

namespace WP_Ultimo\Country;

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

/**
 * Country Class for China (CN).
 *
 * 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_CN 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' => 'CN',
		'currency'     => 'CNY',
		'phone_code'   => 86,
	];

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

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

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

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

		return [
			'AH' => __('Anhui', 'wp-multisite-waas'),
			'BJ' => __('Beijing', 'wp-multisite-waas'),
			'CQ' => __('Chongqing', 'wp-multisite-waas'),
			'FJ' => __('Fujian', 'wp-multisite-waas'),
			'GS' => __('Gansu', 'wp-multisite-waas'),
			'GD' => __('Guangdong', 'wp-multisite-waas'),
			'GX' => __('Guangxi Zhuang', 'wp-multisite-waas'),
			'GZ' => __('Guizhou', 'wp-multisite-waas'),
			'HI' => __('Hainan', 'wp-multisite-waas'),
			'HE' => __('Hebei', 'wp-multisite-waas'),
			'HL' => __('Heilongjiang', 'wp-multisite-waas'),
			'HA' => __('Henan', 'wp-multisite-waas'),
			'HK' => __('Hong Kong SAR', 'wp-multisite-waas'),
			'HB' => __('Hubei', 'wp-multisite-waas'),
			'HN' => __('Hunan', 'wp-multisite-waas'),
			'NM' => __('Inner Mongolia', 'wp-multisite-waas'),
			'JS' => __('Jiangsu', 'wp-multisite-waas'),
			'JX' => __('Jiangxi', 'wp-multisite-waas'),
			'JL' => __('Jilin', 'wp-multisite-waas'),
			'LN' => __('Liaoning', 'wp-multisite-waas'),
			'MO' => __('Macau SAR', 'wp-multisite-waas'),
			'NX' => __('Ningxia Huizu', 'wp-multisite-waas'),
			'QH' => __('Qinghai', 'wp-multisite-waas'),
			'SN' => __('Shaanxi', 'wp-multisite-waas'),
			'SD' => __('Shandong', 'wp-multisite-waas'),
			'SH' => __('Shanghai', 'wp-multisite-waas'),
			'SX' => __('Shanxi', 'wp-multisite-waas'),
			'SC' => __('Sichuan', 'wp-multisite-waas'),
			'TW' => __('Taiwan', 'wp-multisite-waas'),
			'TJ' => __('Tianjin', 'wp-multisite-waas'),
			'XJ' => __('Xinjiang', 'wp-multisite-waas'),
			'XZ' => __('Xizang', 'wp-multisite-waas'),
			'YN' => __('Yunnan', 'wp-multisite-waas'),
			'ZJ' => __('Zhejiang', 'wp-multisite-waas'),
		];
	}
}
