
| Current Path : /var/www/html/rocksensor/web/modules/contrib/visitors/visitors_geoip/src/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/rocksensor/web/modules/contrib/visitors/visitors_geoip/src/VisitorsGeoIpInterface.php |
<?php
namespace Drupal\visitors_geoip;
use GeoIp2\Database\Reader;
/**
* Visitors Geo Location Interface.
*
* @package visitors_geoip
*/
interface VisitorsGeoIpInterface {
/**
* Get the GeoIP metadata.
*
* @return \MaxMind\Db\Reader\Metadata|null
* The metadata.
*/
public function metadata();
/**
* Get the GeoIP country.
*
* @param string $ip_address
* The IP address.
*
* @return array|null
* The country.
*/
public function city($ip_address);
/**
* Get the GeoIP reader.
*
* @return \GeoIp2\Database\Reader
* The reader.
*/
public function getReader();
/**
* Set the GeoIP reader.
*
* @param \GeoIp2\Database\Reader $reader
* The reader.
*/
public function setReader(Reader $reader);
}