<?php // phpcs:ignore - @generation-checksum ES-28-6692
/**
 * Country Class for Spain (ES).
 *
 * State/province count: 28
 * City count: 6692
 * City count per state/province:
 * - LE: 1948 cities
 * - CM: 808 cities
 * - AN: 724 cities
 * - AR: 620 cities
 * - CT: 557 cities
 * - VC: 477 cities
 * - EX: 349 cities
 * - GA: 227 cities
 * - MD: 188 cities
 * - NC: 176 cities
 * - RI: 159 cities
 * - PV: 149 cities
 * - CN: 105 cities
 * - PM: 87 cities
 * - CB: 58 cities
 * - MC: 57 cities
 * - CE: 2 cities
 * - ML: 1 cities
 *
 * @package WP_Ultimo\Country
 * @since 2.0.11
 */

namespace WP_Ultimo\Country;

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

/**
 * Country Class for Spain (ES).
 *
 * 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_ES 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' => 'ES',
		'currency'     => 'EUR',
		'phone_code'   => 34,
	];

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

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

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

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

		return [
			'AN' => __('Andalusia', 'wp-multisite-waas'),
			'AR' => __('Aragon', 'wp-multisite-waas'),
			'AS' => __('Asturias', 'wp-multisite-waas'),
			'PM' => __('Balearic Islands', 'wp-multisite-waas'),
			'PV' => __('Basque Country', 'wp-multisite-waas'),
			'BU' => __('Burgos Province', 'wp-multisite-waas'),
			'CN' => __('Canary Islands', 'wp-multisite-waas'),
			'CB' => __('Cantabria', 'wp-multisite-waas'),
			'CL' => __('Castile and León', 'wp-multisite-waas'),
			'CM' => __('Castilla La Mancha', 'wp-multisite-waas'),
			'CT' => __('Catalonia', 'wp-multisite-waas'),
			'CE' => __('Ceuta', 'wp-multisite-waas'),
			'EX' => __('Extremadura', 'wp-multisite-waas'),
			'GA' => __('Galicia', 'wp-multisite-waas'),
			'RI' => __('La Rioja', 'wp-multisite-waas'),
			'LE' => __('Léon', 'wp-multisite-waas'),
			'MD' => __('Madrid', 'wp-multisite-waas'),
			'ML' => __('Melilla', 'wp-multisite-waas'),
			'MC' => __('Murcia', 'wp-multisite-waas'),
			'NC' => __('Navarra', 'wp-multisite-waas'),
			'P'  => __('Palencia Province', 'wp-multisite-waas'),
			'SA' => __('Salamanca Province', 'wp-multisite-waas'),
			'SG' => __('Segovia Province', 'wp-multisite-waas'),
			'SO' => __('Soria Province', 'wp-multisite-waas'),
			'VC' => __('Valencia', 'wp-multisite-waas'),
			'VA' => __('Valladolid Province', 'wp-multisite-waas'),
			'ZA' => __('Zamora Province', 'wp-multisite-waas'),
			'AV' => __('Ávila', 'wp-multisite-waas'),
		];
	}
}
