|
| 1 | +<?php |
| 2 | + |
| 3 | +namespace TraderInteractive\NetAcuity; |
| 4 | + |
| 5 | +/** |
| 6 | + * Contract for NetAcuity api client. |
| 7 | + */ |
| 8 | +interface NetAcuityInterface |
| 9 | +{ |
| 10 | + /** |
| 11 | + * Gets the geo data for the given IP. |
| 12 | + * |
| 13 | + * Failures will be raised as exceptions. |
| 14 | + * |
| 15 | + * @param string $ip The ip address to lookup |
| 16 | + * |
| 17 | + * @return array { |
| 18 | + * @type string $country |
| 19 | + * @type string $region |
| 20 | + * @type string $city |
| 21 | + * @type string $conn-speed |
| 22 | + * @type string $metro-code |
| 23 | + * @type string $latitude |
| 24 | + * @type string $longitude |
| 25 | + * @type string $postal-code |
| 26 | + * @type string $country-code |
| 27 | + * @type string $region-code |
| 28 | + * @type string $city-code |
| 29 | + * @type string $continent-code |
| 30 | + * @type string $two-letter-country |
| 31 | + * @type string $internal-code |
| 32 | + * @type string $area-code |
| 33 | + * @type string $country-conf |
| 34 | + * @type string $region-conf |
| 35 | + * @type string $city-conf |
| 36 | + * @type string $postal-conf |
| 37 | + * @type string $gmt-offset |
| 38 | + * @type string $in-dist |
| 39 | + * @type string $timezone-name |
| 40 | + * } |
| 41 | + */ |
| 42 | + public function getGeo(string $ip) : array; |
| 43 | +} |
0 commit comments