summaryrefslogtreecommitdiffstats
path: root/vendor/geoip2/geoip2/src/ProviderInterface.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/geoip2/geoip2/src/ProviderInterface.php')
-rw-r--r--vendor/geoip2/geoip2/src/ProviderInterface.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/vendor/geoip2/geoip2/src/ProviderInterface.php b/vendor/geoip2/geoip2/src/ProviderInterface.php
new file mode 100644
index 0000000..9162069
--- /dev/null
+++ b/vendor/geoip2/geoip2/src/ProviderInterface.php
@@ -0,0 +1,20 @@
+<?php
+
+namespace GeoIp2;
+
+interface ProviderInterface
+{
+ /**
+ * @param string $ipAddress an IPv4 or IPv6 address to lookup
+ *
+ * @return \GeoIp2\Model\Country a Country model for the requested IP address
+ */
+ public function country($ipAddress);
+
+ /**
+ * @param string $ipAddress an IPv4 or IPv6 address to lookup
+ *
+ * @return \GeoIp2\Model\City a City model for the requested IP address
+ */
+ public function city($ipAddress);
+}