From 859050596136b1e195bc055931f3190abecae452 Mon Sep 17 00:00:00 2001 From: Maxime Helias Date: Mon, 26 Mar 2018 22:40:42 +0200 Subject: [PATCH] Migration PHP 5.x to PHP 7.x --- .editorconfig | 2 +- .gitattributes | 2 +- .travis.yml | 1 - composer.json | 14 +- ....Exceptions.InvalidParameterException.html | 22 +- ...minatim.Exceptions.NominatimException.html | 33 +- docs/classes/maxh.Nominatim.Lookup.html | 52 +- docs/classes/maxh.Nominatim.Nominatim.html | 34 +- docs/classes/maxh.Nominatim.Query.html | 57 +- .../maxh.Nominatim.QueryInterface.html | 20 +- docs/classes/maxh.Nominatim.QueryTrait.html | 689 ------------------ docs/classes/maxh.Nominatim.Reverse.html | 56 +- docs/classes/maxh.Nominatim.Search.html | 60 +- .../Exceptions.InvalidParameterException.html | 33 +- docs/files/Exceptions.NominatimException.html | 33 +- .../InvalidParameterException.php.txt | 3 + .../Exceptions/NominatimException.php.txt | 11 +- docs/files/Lookup.html | 20 +- docs/files/Lookup.php.txt | 7 +- docs/files/Nominatim.html | 20 +- docs/files/Nominatim.php.txt | 54 +- docs/files/Query.html | 20 +- docs/files/Query.php.txt | 52 +- docs/files/QueryInterface.html | 22 +- docs/files/QueryInterface.php.txt | 12 +- docs/files/QueryTrait.html | 326 --------- docs/files/QueryTrait.php.txt | 98 --- docs/files/Reverse.html | 20 +- docs/files/Reverse.php.txt | 12 +- docs/files/Search.html | 20 +- docs/files/Search.php.txt | 32 +- docs/font/FontAwesome.otf | Bin 75186 -> 75188 bytes docs/font/fontawesome-webfont.ttf | Bin 141537 -> 141564 bytes docs/font/fontawesome-webfont.woff | Bin 83759 -> 83760 bytes docs/graphs/class.html | 2 +- docs/graphs/classes.svg | 164 +++-- docs/images/apple-touch-icon-114x114.png | Bin 28336 -> 28338 bytes docs/images/apple-touch-icon-72x72.png | Bin 12750 -> 12751 bytes docs/images/apple-touch-icon.png | Bin 8357 -> 8358 bytes docs/images/hierarchy-item.png | Bin 235 -> 236 bytes docs/images/icon-class-13x13.png | Bin 427 -> 428 bytes docs/images/icon-interface-13x13.png | Bin 307 -> 308 bytes docs/images/icon-trait-13x13.png | Bin 339 -> 340 bytes docs/images/iviewer/iviewer.rotate_left.png | Bin 1492 -> 1493 bytes docs/images/iviewer/iviewer.rotate_right.png | Bin 1480 -> 1482 bytes docs/images/iviewer/iviewer.zoom_fit.png | Bin 1251 -> 1252 bytes docs/images/iviewer/iviewer.zoom_in.png | Bin 1419 -> 1420 bytes docs/images/iviewer/iviewer.zoom_out.png | Bin 1415 -> 1416 bytes docs/images/iviewer/iviewer.zoom_zero.png | Bin 1090 -> 1091 bytes docs/index.html | 18 +- docs/namespaces/default.html | 18 +- .../namespaces/maxh.Nominatim.Exceptions.html | 18 +- docs/namespaces/maxh.Nominatim.html | 18 +- docs/namespaces/maxh.html | 18 +- ...-file_f5f6b84906e89e213f2429162986526b.dat | Bin 45607 -> 47655 bytes ...-file_d09f0f1f8734cca72644ca8f179729f5.dat | Bin 7547 -> 7570 bytes ...file_fc97c9c8e82b0a7635ba87870608eb18.dat} | Bin 4346 -> 4780 bytes ...-file_3f6880af1291c36c4944ed54be016677.dat | Bin 0 -> 16790 bytes ...-file_21af159c905d0493a0e92eed8ee6937b.dat | Bin 31993 -> 32495 bytes ...-file_2c03d98fe84f7883648dbd918f694543.dat | Bin 38842 -> 39019 bytes ...-file_c24bbd97c22a0e2877aadb465d8290c8.dat | Bin 19438 -> 19502 bytes ...-file_8ddf77c5157272b7bd4b14070db0fde7.dat | Bin 16204 -> 0 bytes ...-file_821e8e95065b6bbe12e3c72dcdfa6673.dat | Bin 12019 -> 12048 bytes docs/reports/deprecated.html | 2 +- docs/reports/errors.html | 2 +- docs/reports/markers.html | 2 +- examples/LookupExample.php | 31 +- examples/ReverseExample.php | 26 +- examples/SearchExample.php | 36 +- src/Exceptions/InvalidParameterException.php | 3 + src/Exceptions/NominatimException.php | 11 +- src/Lookup.php | 7 +- src/Nominatim.php | 54 +- src/Query.php | 52 +- src/QueryInterface.php | 12 +- src/Reverse.php | 12 +- src/Search.php | 32 +- tests/LookupTest.php | 21 +- tests/NominatimTest.php | 9 +- tests/ReverseTest.php | 18 +- tests/SearchTest.php | 18 +- 81 files changed, 729 insertions(+), 1712 deletions(-) delete mode 100644 docs/classes/maxh.Nominatim.QueryTrait.html delete mode 100644 docs/files/QueryTrait.html delete mode 100644 docs/files/QueryTrait.php.txt rename docs/{phpdoc-cache-da/phpdoc-cache-file_c6aeec193347e8e093efabca75accd2e.dat => phpdoc-cache-5c/phpdoc-cache-file_fc97c9c8e82b0a7635ba87870608eb18.dat} (70%) create mode 100644 docs/phpdoc-cache-7b/phpdoc-cache-file_3f6880af1291c36c4944ed54be016677.dat delete mode 100644 docs/phpdoc-cache-d3/phpdoc-cache-file_8ddf77c5157272b7bd4b14070db0fde7.dat diff --git a/.editorconfig b/.editorconfig index a40f024..a29a2cf 100644 --- a/.editorconfig +++ b/.editorconfig @@ -7,7 +7,7 @@ root = true charset = utf-8 # Unix-style newlines with a newline ending every file -[*] +[!*.{otf,ttf,woff,png}] end_of_line = lf insert_final_newline = true diff --git a/.gitattributes b/.gitattributes index e8f63af..a2d0bec 100644 --- a/.gitattributes +++ b/.gitattributes @@ -14,4 +14,4 @@ /tests export-ignore # End line -* text eol=lf +\!*.{otf,ttf,woff,png} text eol=lf diff --git a/.travis.yml b/.travis.yml index 48279e2..d045990 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,7 +12,6 @@ env: - COMPOSER_DISABLE_XDEBUG_WARN=1 php: - - 5.6 - 7.0 - 7.1 - 7.2 diff --git a/composer.json b/composer.json index 57a4588..2e8b5dc 100644 --- a/composer.json +++ b/composer.json @@ -14,12 +14,12 @@ } ], "require": { - "php": ">=5.5.0", - "guzzlehttp/guzzle": "^6.0" + "php": ">=7.0", + "guzzlehttp/guzzle": "dev-master" }, "require-dev": { "phpunit/phpunit": "5.7.*", - "squizlabs/php_codesniffer": "@dev", + "squizlabs/php_codesniffer": "dev-master", "phpro/grumphp": "^0.12.0||0.9.*" }, "autoload": { @@ -31,9 +31,9 @@ } }, "scripts": { - "test": "vendor\\bin\\phpunit", - "check-style": "vendor\\bin\\phpcs -p --standard=PSR2 --runtime-set ignore_errors_on_exit 1 --runtime-set ignore_warnings_on_exit 1 src tests", - "fix-style": "vendor\\bin\\phpcbf -p --standard=PSR2 --runtime-set ignore_errors_on_exit 1 --runtime-set ignore_warnings_on_exit 1 src tests", - "doc": "phpdoc -d src\\ -t docs\\" + "test": "vendor/bin/phpunit", + "check-style": "vendor/bin/phpcs -p --standard=PSR2 --runtime-set ignore_errors_on_exit 1 --runtime-set ignore_warnings_on_exit 1 src tests", + "fix-style": "vendor/bin/phpcbf -p --standard=PSR2 --runtime-set ignore_errors_on_exit 1 --runtime-set ignore_warnings_on_exit 1 src tests", + "doc": "phpdoc -d src/ -t docs/" } } diff --git a/docs/classes/maxh.Nominatim.Exceptions.InvalidParameterException.html b/docs/classes/maxh.Nominatim.Exceptions.InvalidParameterException.html index f6b9789..2f61d3f 100644 --- a/docs/classes/maxh.Nominatim.Exceptions.InvalidParameterException.html +++ b/docs/classes/maxh.Nominatim.Exceptions.InvalidParameterException.html @@ -144,37 +144,37 @@
- + \
-
+
- + maxh
-
+
- + Nominatim
-
+
-
+
@@ -287,7 +287,7 @@

Summary

File
-
Exceptions\InvalidParameterException.php
+
Exceptions/InvalidParameterException.php
Package
maxh\Nominatim
Class hierarchy
@@ -327,7 +327,7 @@

Tags

InvalidParameterException.php

@@ -368,7 +368,7 @@


Documentation is powered by phpDocumentor and authored - on January 14th, 2018 at 23:46. + on March 26th, 2018 at 20:58.
diff --git a/docs/classes/maxh.Nominatim.Exceptions.NominatimException.html b/docs/classes/maxh.Nominatim.Exceptions.NominatimException.html index 28f451b..7603267 100644 --- a/docs/classes/maxh.Nominatim.Exceptions.NominatimException.html +++ b/docs/classes/maxh.Nominatim.Exceptions.NominatimException.html @@ -144,37 +144,37 @@
- + \
-
+
- + maxh
-
+
- + Nominatim
-
+
-
+
@@ -290,7 +290,7 @@

Summary

File
-
Exceptions\NominatimException.php
+
Exceptions/NominatimException.php
Package
maxh\Nominatim
Class hierarchy
@@ -389,7 +389,7 @@

Tags

__construct()

-
__construct(string  $message, \Psr\Http\Message\RequestInterface  $request, \Psr\Http\Message\ResponseInterface|null  $response = null, \Exception|null  $previous = null) 
+
__construct(string  $message, \Psr\Http\Message\RequestInterface  $request = null, \Psr\Http\Message\ResponseInterface|null  $response = null, \Exception|null  $previous = null) 

Constructor

@@ -438,14 +438,14 @@

Tags

getRequest()

-
getRequest() : \GuzzleHttp\Psr7\Request
+
getRequest() : \Psr\Http\Message\RequestInterface

Return the Request

Returns

- \GuzzleHttp\Psr7\Request + \Psr\Http\Message\RequestInterface
@@ -466,15 +466,14 @@

Tags

getResponse()

-
getResponse() : \GuzzleHttp\Psr7\Response
+
getResponse() : \GuzzleHttp\Promise\PromiseInterface|\Psr\Http\Message\ResponseInterface

Return the Response

Returns

- \GuzzleHttp\Psr7\Response - —

[description]

+ \GuzzleHttp\Promise\PromiseInterface|\Psr\Http\Message\ResponseInterface
@@ -498,7 +497,7 @@

Tags

NominatimException.php

@@ -539,7 +538,7 @@


Documentation is powered by phpDocumentor and authored - on January 14th, 2018 at 23:46. + on March 26th, 2018 at 20:58.
diff --git a/docs/classes/maxh.Nominatim.Lookup.html b/docs/classes/maxh.Nominatim.Lookup.html index 6113880..cd7e4b1 100644 --- a/docs/classes/maxh.Nominatim.Lookup.html +++ b/docs/classes/maxh.Nominatim.Lookup.html @@ -144,37 +144,37 @@
- + \
-
+
- + maxh
-
+
- + Nominatim
-
+
-
+
@@ -279,7 +279,7 @@

Summary

$path
$query
$format
- $accepteFormat
+ $acceptedFormat
$polygon
@@ -306,7 +306,7 @@

Summary

File
Lookup.php
Package
-
maxh\nominatim
+
maxh\Nominatim
Class hierarchy
@@ -417,10 +417,10 @@

Tags

- +
-

$accepteFormat

-
$accepteFormat : array
+

$acceptedFormat

+
$acceptedFormat : array

Output format accepted

@@ -514,7 +514,7 @@

Tags

@@ -557,7 +557,7 @@

Tags

language()

-
language(string  $language) : \maxh\Nominatim\Query
+
language(string  $language) : \maxh\Nominatim\Search|\maxh\Nominatim\Reverse|\maxh\Nominatim\Lookup

Preferred language order for showing search results, overrides the value specified in the "Accept-Language" HTTP header. Either uses standard rfc2616 accept-language string or a simple comma separated list of @@ -577,7 +577,7 @@

Parameters

Returns

- \maxh\Nominatim\Query + \maxh\Nominatim\Search|\maxh\Nominatim\Reverse|\maxh\Nominatim\Lookup
@@ -600,7 +600,7 @@

Tags

@@ -638,7 +638,7 @@

Tags

email()

-
email(string  $email) : \maxh\Nominatim\Query
+
email(string  $email) : \maxh\Nominatim\Search|\maxh\Nominatim\Reverse|\maxh\Nominatim\Lookup

If you are making large numbers of request please include a valid email address or alternatively include your email address as part of the User-Agent string. This information will be kept confidential and only used to contact you in the event of a problem, see Usage Policy for more details.

@@ -655,7 +655,7 @@

Parameters

Returns

- \maxh\Nominatim\Query + \maxh\Nominatim\Search|\maxh\Nominatim\Reverse|\maxh\Nominatim\Lookup
@@ -717,7 +717,7 @@

Tags

@@ -755,7 +755,7 @@

Tags

nameDetails()

-
nameDetails(boolean  $details = true) : \maxh\Nominatim\Query
+
nameDetails(boolean  $details = true) : \maxh\Nominatim\Search|\maxh\Nominatim\Reverse|\maxh\Nominatim\Lookup

Include a list of alternative names in the results.

These may include language variants, references, operator and brand.

@@ -770,7 +770,7 @@

Parameters

Returns

- \maxh\Nominatim\Query + \maxh\Nominatim\Search|\maxh\Nominatim\Reverse|\maxh\Nominatim\Lookup
@@ -1105,7 +1105,7 @@


Documentation is powered by phpDocumentor and authored - on January 14th, 2018 at 23:46. + on March 26th, 2018 at 20:58.
diff --git a/docs/classes/maxh.Nominatim.Nominatim.html b/docs/classes/maxh.Nominatim.Nominatim.html index 22402dc..c17b838 100644 --- a/docs/classes/maxh.Nominatim.Nominatim.html +++ b/docs/classes/maxh.Nominatim.Nominatim.html @@ -144,37 +144,37 @@
- + \
-
+
- + maxh
-
+
- + Nominatim
-
+
-
+
@@ -297,7 +297,7 @@

Summary

File
Nominatim.php
Package
-
maxh\nominatim
+
maxh\Nominatim
Class hierarchy
\maxh\Nominatim\Nominatim
@@ -306,7 +306,9 @@

Summary

- +
See also
+
http://wiki.openstreetmap.org/wiki/Nominatim
+

Tags

@@ -478,7 +480,7 @@

Parameters

Throws

-
\maxh\Nominatim\Exceptions\InvalidParameterException
+
\maxh\Nominatim\Exceptions\NominatimException
@@ -531,7 +533,7 @@

Tags

newReverse()

newReverse() : \maxh\Nominatim\Reverse
-

Returns a new search object based on the base reverse.

+

Returns a new reverse object based on the base reverse.

@@ -559,7 +561,7 @@

Tags

newLookup()

newLookup() : \maxh\Nominatim\Lookup
-

Returns a new search object based on the base lookup.

+

Returns a new lookup object based on the base lookup.

@@ -586,7 +588,7 @@

Tags

find()

-
find(\maxh\Nominatim\QueryInterface  $nRequest) : array
+
find(\maxh\Nominatim\QueryInterface  $nRequest) : array|\SimpleXMLElement

Runs the query and returns the result set from Nominatim.

@@ -608,7 +610,7 @@

Throws

Returns

- array + array|\SimpleXMLElement —

The decoded data returned from Nominatim

@@ -753,7 +755,7 @@


Documentation is powered by phpDocumentor and authored - on January 14th, 2018 at 23:46. + on March 26th, 2018 at 20:58.
diff --git a/docs/classes/maxh.Nominatim.Query.html b/docs/classes/maxh.Nominatim.Query.html index 08e84bc..4b5a8d1 100644 --- a/docs/classes/maxh.Nominatim.Query.html +++ b/docs/classes/maxh.Nominatim.Query.html @@ -144,37 +144,37 @@
- + \
-
+
- + maxh
-
+
- + Nominatim
-
+
-
+
@@ -278,7 +278,7 @@

Summary

$path
$query
$format
- $accepteFormat
+ $acceptedFormat
$polygon
@@ -299,13 +299,14 @@

Summary

@@ -542,7 +543,7 @@

Tags

language()

-
language(string  $language) : \maxh\Nominatim\Query
+
language(string  $language) : \maxh\Nominatim\Search|\maxh\Nominatim\Reverse|\maxh\Nominatim\Lookup

Preferred language order for showing search results, overrides the value specified in the "Accept-Language" HTTP header. Either uses standard rfc2616 accept-language string or a simple comma separated list of @@ -562,7 +563,7 @@

Parameters

Returns

- \maxh\Nominatim\Query + \maxh\Nominatim\Search|\maxh\Nominatim\Reverse|\maxh\Nominatim\Lookup
@@ -583,7 +584,7 @@

Tags

@@ -619,7 +620,7 @@

Tags

email()

-
email(string  $email) : \maxh\Nominatim\Query
+
email(string  $email) : \maxh\Nominatim\Search|\maxh\Nominatim\Reverse|\maxh\Nominatim\Lookup

If you are making large numbers of request please include a valid email address or alternatively include your email address as part of the User-Agent string. This information will be kept confidential and only used to contact you in the event of a problem, see Usage Policy for more details.

@@ -636,7 +637,7 @@

Parameters

Returns

- \maxh\Nominatim\Query + \maxh\Nominatim\Search|\maxh\Nominatim\Reverse|\maxh\Nominatim\Lookup
@@ -657,7 +658,7 @@

Tags

@@ -698,7 +699,7 @@

Tags

@@ -734,7 +735,7 @@

Tags

nameDetails()

-
nameDetails(boolean  $details = true) : \maxh\Nominatim\Query
+
nameDetails(boolean  $details = true) : \maxh\Nominatim\Search|\maxh\Nominatim\Reverse|\maxh\Nominatim\Lookup

Include a list of alternative names in the results.

These may include language variants, references, operator and brand.

@@ -749,7 +750,7 @@

Parameters

Returns

- \maxh\Nominatim\Query + \maxh\Nominatim\Search|\maxh\Nominatim\Reverse|\maxh\Nominatim\Lookup
@@ -1032,7 +1033,7 @@


Documentation is powered by phpDocumentor and authored - on January 14th, 2018 at 23:46. + on March 26th, 2018 at 20:58.
diff --git a/docs/classes/maxh.Nominatim.QueryInterface.html b/docs/classes/maxh.Nominatim.QueryInterface.html index d3800f1..df5fc80 100644 --- a/docs/classes/maxh.Nominatim.QueryInterface.html +++ b/docs/classes/maxh.Nominatim.QueryInterface.html @@ -144,37 +144,37 @@
- + \
-
+
- + maxh
-
+
- + Nominatim
-
+
-
+
@@ -277,7 +277,7 @@

Summary

QueryInterface.php
Package
-
\maxh\nominatim
+
\maxh\Nominatim

Tags

@@ -433,7 +433,7 @@


Documentation is powered by phpDocumentor and authored - on January 14th, 2018 at 23:46. + on March 26th, 2018 at 20:58.
diff --git a/docs/classes/maxh.Nominatim.QueryTrait.html b/docs/classes/maxh.Nominatim.QueryTrait.html deleted file mode 100644 index 88a57d9..0000000 --- a/docs/classes/maxh.Nominatim.QueryTrait.html +++ /dev/null @@ -1,689 +0,0 @@ - - - - - - API Documentation - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
-
-
-
- - - -

\maxh\NominatimQueryTrait

-

Trait implementing functionality common to requests nominatim.

- - - -
-

Summary

-
-
- Methods -
-
- Properties -
-
- Constants -
-
-
-
- getPath()
- getQuery()
- getFormat()
- getQueryString()
-
-
- No public properties found -
-
- No constants found -
-
-
-
- No protected methods found -
-
- $path
- $query
- $format
-
-
- N/A -
-
-
-
- setPath()
- setQuery()
- setFormat()
-
-
- No private properties found -
-
- N/A -
-
-
-
-
- -
None found
- -
- - - -
-
-

Properties

-
- -
- -
-
- -
-

$path

-
$path : string
-

Contain the path of the request

- - -

Type

- string -
-
- -
- -
-
- -
-

$query

-
$query : array
-

Contain the query for request

- - -

Type

- array -
-
- -
- -
-
- -
-

$format

-
$format : string
-

Contain the format for decode data returning by the request

- - -

Type

- string -
-
- -
- - - -
-

Methods

- -
- -
-
- -
-

getPath()

- -
getPath() : string
-

Get path

- - - - -

Returns

- string - -
-
- -
- -
-
- -
-

getQuery()

- -
getQuery() : array
-

Get query

- - - - -

Returns

- array - -
-
- -
- -
-
- -
-

getFormat()

- -
getFormat() : string
-

Get format

- - - - -

Returns

- string - -
-
- -
- -
-
- -
-

getQueryString()

- -
getQueryString() : string
-

Returns the URL-encoded query.

- - - - -

Returns

- string - -
-
- -
- -
-
- -
-

setPath()

- -
setPath(string  $path) 
-

Set path

- - -

Parameters

- - - - - - -
string$path

Name's path of the service

- - - -
-
- -
- -
-
- -
-

setQuery()

- -
setQuery(array  $query = array()) 
-

Set query

- - -

Parameters

- - - - - - -
array$query

Parameter of the query

- - - -
-
- -
- -
-
- -
-

setFormat()

- -
setFormat(string  $format) 
-

Set format

- - -

Parameters

- - - - - - -
string$format

Format returning by the response

- - - -
-
- -
- -
- - - - - -
- - - diff --git a/docs/classes/maxh.Nominatim.Reverse.html b/docs/classes/maxh.Nominatim.Reverse.html index 9d70477..e5ef0c3 100644 --- a/docs/classes/maxh.Nominatim.Reverse.html +++ b/docs/classes/maxh.Nominatim.Reverse.html @@ -144,37 +144,37 @@
- + \
-
+
- + maxh
-
+
- + Nominatim
-
+
-
+
@@ -282,7 +282,7 @@

Summary

$path
$query
$format
- $accepteFormat
+ $acceptedFormat
$polygon
@@ -309,7 +309,7 @@

Summary

File
Reverse.php
Package
-
maxh\nominatim
+
maxh\Nominatim
Class hierarchy
@@ -444,10 +444,10 @@

Tags

- +
-

$accepteFormat

-
$accepteFormat : array
+

$acceptedFormat

+
$acceptedFormat : array

Output format accepted

@@ -541,7 +541,7 @@

Tags

@@ -584,7 +584,7 @@

Tags

language()

-
language(string  $language) : \maxh\Nominatim\Query
+
language(string  $language) : \maxh\Nominatim\Search|\maxh\Nominatim\Reverse|\maxh\Nominatim\Lookup

Preferred language order for showing search results, overrides the value specified in the "Accept-Language" HTTP header. Either uses standard rfc2616 accept-language string or a simple comma separated list of @@ -604,7 +604,7 @@

Parameters

Returns

- \maxh\Nominatim\Query + \maxh\Nominatim\Search|\maxh\Nominatim\Reverse|\maxh\Nominatim\Lookup
@@ -627,7 +627,7 @@

Tags

@@ -665,7 +665,7 @@

Tags

email()

-
email(string  $email) : \maxh\Nominatim\Query
+
email(string  $email) : \maxh\Nominatim\Search|\maxh\Nominatim\Reverse|\maxh\Nominatim\Lookup

If you are making large numbers of request please include a valid email address or alternatively include your email address as part of the User-Agent string. This information will be kept confidential and only used to contact you in the event of a problem, see Usage Policy for more details.

@@ -682,7 +682,7 @@

Parameters

Returns

- \maxh\Nominatim\Query + \maxh\Nominatim\Search|\maxh\Nominatim\Reverse|\maxh\Nominatim\Lookup
@@ -705,7 +705,7 @@

Tags

@@ -748,7 +748,7 @@

Tags

@@ -786,7 +786,7 @@

Tags

nameDetails()

-
nameDetails(boolean  $details = true) : \maxh\Nominatim\Query
+
nameDetails(boolean  $details = true) : \maxh\Nominatim\Search|\maxh\Nominatim\Reverse|\maxh\Nominatim\Lookup

Include a list of alternative names in the results.

These may include language variants, references, operator and brand.

@@ -801,7 +801,7 @@

Parameters

Returns

- \maxh\Nominatim\Query + \maxh\Nominatim\Search|\maxh\Nominatim\Reverse|\maxh\Nominatim\Lookup
@@ -1254,7 +1254,7 @@


Documentation is powered by phpDocumentor and authored - on January 14th, 2018 at 23:46. + on March 26th, 2018 at 20:58.
diff --git a/docs/classes/maxh.Nominatim.Search.html b/docs/classes/maxh.Nominatim.Search.html index a90e600..fa08b7a 100644 --- a/docs/classes/maxh.Nominatim.Search.html +++ b/docs/classes/maxh.Nominatim.Search.html @@ -144,37 +144,37 @@
- + \
-
+
- + maxh
-
+
- + Nominatim
-
+
-
+
@@ -289,7 +289,7 @@

Summary

$path
$query
$format
- $accepteFormat
+ $acceptedFormat
$polygon
@@ -316,7 +316,7 @@

Summary

File
Search.php
Package
-
maxh\nominatim
+
maxh\Nominatim
Class hierarchy
@@ -427,10 +427,10 @@

Tags

- +
-

$accepteFormat

-
$accepteFormat : array
+

$acceptedFormat

+
$acceptedFormat : array

Output format accepted

@@ -524,7 +524,7 @@

Tags

@@ -567,7 +567,7 @@

Tags

language()

-
language(string  $language) : \maxh\Nominatim\Query
+
language(string  $language) : \maxh\Nominatim\Search|\maxh\Nominatim\Reverse|\maxh\Nominatim\Lookup

Preferred language order for showing search results, overrides the value specified in the "Accept-Language" HTTP header. Either uses standard rfc2616 accept-language string or a simple comma separated list of @@ -587,7 +587,7 @@

Parameters

Returns

- \maxh\Nominatim\Query + \maxh\Nominatim\Search|\maxh\Nominatim\Reverse|\maxh\Nominatim\Lookup
@@ -610,7 +610,7 @@

Tags

@@ -648,7 +648,7 @@

Tags

email()

-
email(string  $email) : \maxh\Nominatim\Query
+
email(string  $email) : \maxh\Nominatim\Search|\maxh\Nominatim\Reverse|\maxh\Nominatim\Lookup

If you are making large numbers of request please include a valid email address or alternatively include your email address as part of the User-Agent string. This information will be kept confidential and only used to contact you in the event of a problem, see Usage Policy for more details.

@@ -665,7 +665,7 @@

Parameters

Returns

- \maxh\Nominatim\Query + \maxh\Nominatim\Search|\maxh\Nominatim\Reverse|\maxh\Nominatim\Lookup
@@ -688,7 +688,7 @@

Tags

@@ -731,7 +731,7 @@

Tags

@@ -769,7 +769,7 @@

Tags

nameDetails()

-
nameDetails(boolean  $details = true) : \maxh\Nominatim\Query
+
nameDetails(boolean  $details = true) : \maxh\Nominatim\Search|\maxh\Nominatim\Reverse|\maxh\Nominatim\Lookup

Include a list of alternative names in the results.

These may include language variants, references, operator and brand.

@@ -784,7 +784,7 @@

Parameters

Returns

- \maxh\Nominatim\Query + \maxh\Nominatim\Search|\maxh\Nominatim\Reverse|\maxh\Nominatim\Lookup
@@ -1147,14 +1147,14 @@

Tags

postalCode()

-
postalCode(integer  $postalCode) : \maxh\Nominatim\Search
+
postalCode(string  $postalCode) : \maxh\Nominatim\Search

Postal code to search for (experimental).

Do not combine with query().

Parameters

- + @@ -1497,7 +1497,7 @@


Documentation is powered by phpDocumentor and authored - on January 14th, 2018 at 23:46. + on March 26th, 2018 at 20:58.
diff --git a/docs/files/Exceptions.InvalidParameterException.html b/docs/files/Exceptions.InvalidParameterException.html index f8ef607..0238a40 100644 --- a/docs/files/Exceptions.InvalidParameterException.html +++ b/docs/files/Exceptions.InvalidParameterException.html @@ -144,37 +144,37 @@
- + \
-
+
- + maxh
-
+
- + Nominatim
-
+
-
+
@@ -227,7 +227,7 @@ -

InvalidParameterException.php

+

ExceptionsInvalidParameterException.php

This file contains code about maxh\Nominatim\Exceptions\InvalidParameterException class

@@ -245,13 +245,20 @@

Classes

integerstring $postalCode

The postal code

- + + + +
None found
+ author + +

Maxime Hélias maximehelias16@gmail.com

+
@@ -268,7 +275,7 @@

Tags

@@ -309,7 +316,7 @@


Documentation is powered by phpDocumentor and authored - on January 14th, 2018 at 23:46. + on March 26th, 2018 at 20:58.
diff --git a/docs/files/Exceptions.NominatimException.html b/docs/files/Exceptions.NominatimException.html index f74bc84..3d8c0b8 100644 --- a/docs/files/Exceptions.NominatimException.html +++ b/docs/files/Exceptions.NominatimException.html @@ -144,37 +144,37 @@
- + \
-
+
- + maxh
-
+
- + Nominatim
-
+
-
+
@@ -227,7 +227,7 @@ -

NominatimException.php

+

ExceptionsNominatimException.php

This file contains code about maxh\Nominatim\Exceptions\NominatimException class

@@ -245,13 +245,20 @@

Classes

@@ -268,7 +275,7 @@

Tags

@@ -309,7 +316,7 @@


Documentation is powered by phpDocumentor and authored - on January 14th, 2018 at 23:46. + on March 26th, 2018 at 20:58.
diff --git a/docs/files/Exceptions/InvalidParameterException.php.txt b/docs/files/Exceptions/InvalidParameterException.php.txt index 0be2516..d7ae2c7 100644 --- a/docs/files/Exceptions/InvalidParameterException.php.txt +++ b/docs/files/Exceptions/InvalidParameterException.php.txt @@ -1,6 +1,9 @@ */ namespace maxh\Nominatim\Exceptions; diff --git a/docs/files/Exceptions/NominatimException.php.txt b/docs/files/Exceptions/NominatimException.php.txt index 74181e0..bae56ad 100644 --- a/docs/files/Exceptions/NominatimException.php.txt +++ b/docs/files/Exceptions/NominatimException.php.txt @@ -1,6 +1,9 @@ */ namespace maxh\Nominatim\Exceptions; @@ -44,7 +47,7 @@ class NominatimException extends Exception */ public function __construct( $message, - RequestInterface $request, + RequestInterface $request = null, ResponseInterface $response = null, Exception $previous = null ) { @@ -59,16 +62,16 @@ class NominatimException extends Exception /** * Return the Request - * @return \GuzzleHttp\Psr7\Request + * @return RequestInterface */ - public function getRequest() + public function getRequest(): RequestInterface { return $this->request; } /** * Return the Response - * @return \GuzzleHttp\Psr7\Response [description] + * @return PromiseInterface|ResponseInterface */ public function getResponse() { diff --git a/docs/files/Lookup.html b/docs/files/Lookup.html index 19ab57d..9a0a1ae 100644 --- a/docs/files/Lookup.html +++ b/docs/files/Lookup.html @@ -144,37 +144,37 @@
- + \
-
+
- + maxh
-
+
- + Nominatim
-
+
-
+
@@ -245,7 +245,7 @@

Classes