Total Complexity | 9 |
Total Lines | 52 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class GeoTag |
||
11 | { |
||
12 | /** |
||
13 | * @var object $multiCurl tool. |
||
14 | * @var string $baseAddress for the API. |
||
15 | * @var string $apiKey for authentication. |
||
16 | * @var array $allData to store Geotag data. |
||
17 | */ |
||
18 | private $multiCurl; |
||
19 | private $baseAddress; |
||
20 | private $apiKey; |
||
21 | private $allData; |
||
22 | |||
23 | |||
24 | |||
25 | /** |
||
26 | * Geotag current place |
||
27 | * |
||
28 | * @param string $baseAddress for the API. |
||
29 | * @param string $apiKey for authentication. |
||
30 | * |
||
31 | */ |
||
32 | 1 | public function init() |
|
40 | 1 | } |
|
41 | |||
42 | |||
43 | |||
44 | /** |
||
45 | * Valide an IP Address. |
||
46 | * |
||
47 | * @param string $ipAddress is the IP Address to validate. |
||
48 | * |
||
49 | * @return object |
||
50 | */ |
||
51 | 1 | public function getAllData(string $search = null) : array |
|
64 |