private function getCountryByIsoCode( $iso_code ) {
		global $wpdb;
		$query          = "SELECT * FROM {$wpdb->base_prefix}geot_countries WHERE iso_code = %s";
		$result         = $wpdb->get_row( $wpdb->prepare( $query, array( $iso_code ) ), ARRAY_A );
		$country        = new \StdClass();
		$country->names = new \StdClass();

		$country->names->en = $result['country'];
		$country->iso_code  = $result['iso_code'];

		return $country;
	}
private function getCountryByIsoCode( $iso_code ) {
		global $wpdb;
		$query          = "SELECT * FROM {$wpdb->base_prefix}geot_countries WHERE iso_code = %s";
		$result         = $wpdb->get_row( $wpdb->prepare( $query, array( $iso_code ) ), ARRAY_A );
		$country        = new \StdClass();
		$country->names = new \StdClass();

		$country->names->en = $result['country'];
		$country->iso_code  = $result['iso_code'];

		return $country;
	}
private function getCountryByIsoCode ( $ iso_code ) { global $ wpdb ; $ query = "SELECT * FROM {$wpdb->base_prefix}geot_countries WHERE iso_code = %s" ; $ result = $ wpdb -> get_row ( $ wpdb -> prepare ( $ query , array ( $ iso_code ) ) , ARRAY_A ) ; $ country = new \ StdClass ( ) ; $ country -> names = new \ StdClass ( ) ; $ country -> names -> en = $ result [ 'country' ] ; $ country -> iso_code = $ result [ 'iso_code' ] ; return $ country ; }
Get country from database and return object like api

@param $iso_code

@return StdClass
Get country from database and return object like api