1 | <?php |
||
11 | class IPStackFinder |
||
12 | { |
||
13 | /** @var Client $client */ |
||
14 | public $client; |
||
15 | |||
16 | /** |
||
17 | * IPStackHelper constructor. |
||
18 | * @param Client $client |
||
19 | */ |
||
20 | public function __construct(Client $client) |
||
24 | |||
25 | /** |
||
26 | * Get the API response from ipstack.com and return in php associative array format. |
||
27 | * @param $ipAddress |
||
28 | * @return array |
||
29 | * @throws \GuzzleHttp\Exception\GuzzleException |
||
30 | */ |
||
31 | public function get($ipAddress) : array |
||
42 | } |
||
43 |