name; } /** * Creates a country instance with a code and name. * * @since 2.0.11 * * @param string $code The country two-letter code. * @param string $name The country name. * @param array $attributes The country attributes. * @return \WP_Ultimo\Country\Country */ public static function build($code, $name = null, $attributes = []) { $instance = new self(); $instance->name = $name ?: wu_get_country_name($code); $instance->attributes = wp_parse_args( $attributes, [ 'country_code' => strtoupper($code), 'currency' => strtoupper($code), 'phone_code' => 00, ] ); return $instance; } }