-
Notifications
You must be signed in to change notification settings - Fork 286
Expand file tree
/
Copy pathReaderInterface.php
More file actions
88 lines (77 loc) · 2.08 KB
/
Copy pathReaderInterface.php
File metadata and controls
88 lines (77 loc) · 2.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<?php
namespace GeoIp2\Database;
interface ReaderInterface
{
/**
* This method returns a GeoIP2 City model.
*
* @param string $ipAddress an IPv4 or IPv6 address as a string
*
* @return \GeoIp2\Model\City
*/
public function city($ipAddress);
/**
* This method returns a GeoIP2 Country model.
*
* @param string $ipAddress an IPv4 or IPv6 address as a string
*
* @return \GeoIp2\Model\Country
*/
public function country($ipAddress);
/**
* This method returns a GeoIP2 Anonymous IP model.
*
* @param string $ipAddress an IPv4 or IPv6 address as a string
*
* @return \GeoIp2\Model\AnonymousIp
*/
public function anonymousIp($ipAddress);
/**
* This method returns a GeoLite2 ASN model.
*
* @param string $ipAddress an IPv4 or IPv6 address as a string
*
* @return \GeoIp2\Model\Asn
*/
public function asn($ipAddress);
/**
* This method returns a GeoIP2 Connection Type model.
*
* @param string $ipAddress an IPv4 or IPv6 address as a string
*
* @return \GeoIp2\Model\ConnectionType
*/
public function connectionType($ipAddress);
/**
* This method returns a GeoIP2 Domain model.
*
* @param string $ipAddress an IPv4 or IPv6 address as a string
*
* @return \GeoIp2\Model\Domain
*/
public function domain($ipAddress);
/**
* This method returns a GeoIP2 Enterprise model.
*
* @param string $ipAddress an IPv4 or IPv6 address as a string
*
* @return \GeoIp2\Model\Enterprise
*/
public function enterprise($ipAddress);
/**
* This method returns a GeoIP2 ISP model.
*
* @param string $ipAddress an IPv4 or IPv6 address as a string
*
* @return \GeoIp2\Model\Isp
*/
public function isp($ipAddress);
/**
* @return \MaxMind\Db\Reader\Metadata object for the database
*/
public function metadata();
/**
* Closes the GeoIP2 database and returns the resources to the system.
*/
public function close();
}