@@ -15,13 +15,13 @@ |
||
| 15 | 15 | use Geocoder\Collection; |
| 16 | 16 | use Geocoder\Exception\InvalidCredentials; |
| 17 | 17 | use Geocoder\Exception\UnsupportedOperation; |
| 18 | +use Geocoder\Http\Provider\AbstractHttpProvider; |
|
| 18 | 19 | use Geocoder\Model\AddressBuilder; |
| 19 | 20 | use Geocoder\Model\AddressCollection; |
| 21 | +use Geocoder\Provider\Here\Model\HereAddress; |
|
| 22 | +use Geocoder\Provider\Provider; |
|
| 20 | 23 | use Geocoder\Query\GeocodeQuery; |
| 21 | 24 | use Geocoder\Query\ReverseQuery; |
| 22 | -use Geocoder\Http\Provider\AbstractHttpProvider; |
|
| 23 | -use Geocoder\Provider\Provider; |
|
| 24 | -use Geocoder\Provider\Here\Model\HereAddress; |
|
| 25 | 25 | use Http\Client\HttpClient; |
| 26 | 26 | |
| 27 | 27 | /** |
@@ -50,9 +50,8 @@ discard block |
||
| 50 | 50 | private $appCode = null; |
| 51 | 51 | |
| 52 | 52 | /** |
| 53 | - * @param HttpClient $adapter An HTTP adapter. |
|
| 54 | 53 | * @param string $appId An App ID. |
| 55 | - * @param string $apoCode An App code. |
|
| 54 | + * @param string $appCode An App code. |
|
| 56 | 55 | */ |
| 57 | 56 | public function __construct(HttpClient $client, string $appId, string $appCode) |
| 58 | 57 | { |
@@ -97,7 +96,6 @@ discard block |
||
| 97 | 96 | |
| 98 | 97 | /** |
| 99 | 98 | * @param string $url |
| 100 | - * @param string $locale |
|
| 101 | 99 | * @param int $limit |
| 102 | 100 | * |
| 103 | 101 | * @return \Geocoder\Collection |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | /** |
| 47 | - * @param null|string $LocationId |
|
| 47 | + * @param null|string $locationId |
|
| 48 | 48 | * |
| 49 | 49 | * @return HereAddress |
| 50 | 50 | */ |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | } |
| 66 | 66 | |
| 67 | 67 | /** |
| 68 | - * @param null|string $LocationType |
|
| 68 | + * @param null|string $locationType |
|
| 69 | 69 | * |
| 70 | 70 | * @return HereAddress |
| 71 | 71 | */ |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | } |
| 87 | 87 | |
| 88 | 88 | /** |
| 89 | - * @param null|string $LocationName |
|
| 89 | + * @param null|string $locationName |
|
| 90 | 90 | * |
| 91 | 91 | * @return HereAddress |
| 92 | 92 | */ |
@@ -42,11 +42,17 @@ |
||
| 42 | 42 | return $_SERVER['HERE_APP_ID']; |
| 43 | 43 | } |
| 44 | 44 | |
| 45 | + /** |
|
| 46 | + * @return string |
|
| 47 | + */ |
|
| 45 | 48 | protected function getAppId() |
| 46 | 49 | { |
| 47 | 50 | return $_SERVER['HERE_APP_ID']; |
| 48 | 51 | } |
| 49 | 52 | |
| 53 | + /** |
|
| 54 | + * @return string |
|
| 55 | + */ |
|
| 50 | 56 | protected function getAppCode() |
| 51 | 57 | { |
| 52 | 58 | return $_SERVER['HERE_APP_CODE']; |