on-demand release 4.0dev+
[moodle.git] / lib / maxmind / GeoIp2 / ProviderInterface.php
CommitLineData
eacc36a2
DP
1<?php
2
23b681c7
FR
3declare(strict_types=1);
4
eacc36a2
DP
5namespace GeoIp2;
6
7interface ProviderInterface
8{
9 /**
4e23b6b2
AA
10 * @param string $ipAddress an IPv4 or IPv6 address to lookup
11 *
12 * @return \GeoIp2\Model\Country a Country model for the requested IP address
eacc36a2 13 */
23b681c7 14 public function country(string $ipAddress): \GeoIp2\Model\Country;
eacc36a2
DP
15
16 /**
4e23b6b2
AA
17 * @param string $ipAddress an IPv4 or IPv6 address to lookup
18 *
19 * @return \GeoIp2\Model\City a City model for the requested IP address
eacc36a2 20 */
23b681c7 21 public function city(string $ipAddress): \GeoIp2\Model\City;
eacc36a2 22}