| 1 | <?php |
||
| 22 | final class HostIp extends AbstractHostIp |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * @var string |
||
| 26 | */ |
||
| 27 | const ENDPOINT_URL = 'http://api.hostip.info/get_json.php?ip=%s&position=true'; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * {@inheritdoc} |
||
| 31 | */ |
||
| 32 | 4 | public function getName(): string |
|
| 36 | |||
| 37 | /** |
||
| 38 | * @param string $url |
||
| 39 | * |
||
| 40 | * @return Collection |
||
| 41 | */ |
||
| 42 | 7 | protected function executeQuery(string $url): AddressCollection |
|
| 53 | } |
||
| 54 |