mediawiki-extensions-Cookie.../includes/GeoLocation.php

15 lines
303 B
PHP
Raw Permalink Normal View History

<?php
namespace CookieWarning;
interface GeoLocation {
/**
* Tries to locate the given IP address.
*
* @param string $ip The IP address to lookup
* @return null|string NULL on error or if locating the IP was not possible, the country
* code otherwise
*/
public function locate( $ip );
}