Skip to content

Commit 8b9d844

Browse files
committed
1 parent 426ba48 commit 8b9d844

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

Exception/InvalidServerResponse.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ final class InvalidServerResponse extends \RuntimeException implements Exception
2525
*
2626
* @return InvalidServerResponse
2727
*/
28-
public static function create(string $query, int $code = 0): InvalidServerResponse
28+
public static function create(string $query, int $code = 0): self
2929
{
3030
return new self(sprintf('The geocoder server returned an invalid response (%d) for query "%s". We could not parse it.', $code, $query));
3131
}
@@ -35,7 +35,7 @@ public static function create(string $query, int $code = 0): InvalidServerRespon
3535
*
3636
* @return InvalidServerResponse
3737
*/
38-
public static function emptyResponse(string $query): InvalidServerResponse
38+
public static function emptyResponse(string $query): self
3939
{
4040
return new self(sprintf('The geocoder server returned an empty response for query "%s".', $query));
4141
}

Query/GeocodeQuery.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ private function __construct(string $text)
6565
*
6666
* @return GeocodeQuery
6767
*/
68-
public static function create(string $text): GeocodeQuery
68+
public static function create(string $text): self
6969
{
7070
return new self($text);
7171
}
@@ -75,7 +75,7 @@ public static function create(string $text): GeocodeQuery
7575
*
7676
* @return GeocodeQuery
7777
*/
78-
public function withText(string $text): GeocodeQuery
78+
public function withText(string $text): self
7979
{
8080
$new = clone $this;
8181
$new->text = $text;
@@ -88,7 +88,7 @@ public function withText(string $text): GeocodeQuery
8888
*
8989
* @return GeocodeQuery
9090
*/
91-
public function withBounds(Bounds $bounds): GeocodeQuery
91+
public function withBounds(Bounds $bounds): self
9292
{
9393
$new = clone $this;
9494
$new->bounds = $bounds;
@@ -101,7 +101,7 @@ public function withBounds(Bounds $bounds): GeocodeQuery
101101
*
102102
* @return GeocodeQuery
103103
*/
104-
public function withLocale(string $locale): GeocodeQuery
104+
public function withLocale(string $locale): self
105105
{
106106
$new = clone $this;
107107
$new->locale = $locale;
@@ -114,7 +114,7 @@ public function withLocale(string $locale): GeocodeQuery
114114
*
115115
* @return GeocodeQuery
116116
*/
117-
public function withLimit(int $limit): GeocodeQuery
117+
public function withLimit(int $limit): self
118118
{
119119
$new = clone $this;
120120
$new->limit = $limit;
@@ -128,7 +128,7 @@ public function withLimit(int $limit): GeocodeQuery
128128
*
129129
* @return GeocodeQuery
130130
*/
131-
public function withData(string $name, $value): GeocodeQuery
131+
public function withData(string $name, $value): self
132132
{
133133
$new = clone $this;
134134
$new->data[$name] = $value;

Query/ReverseQuery.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public static function create(Coordinates $coordinates)
6464
*
6565
* @return ReverseQuery
6666
*/
67-
public static function fromCoordinates($latitude, $longitude): ReverseQuery
67+
public static function fromCoordinates($latitude, $longitude): self
6868
{
6969
return new self(new Coordinates($latitude, $longitude));
7070
}
@@ -74,7 +74,7 @@ public static function fromCoordinates($latitude, $longitude): ReverseQuery
7474
*
7575
* @return ReverseQuery
7676
*/
77-
public function withCoordinates(Coordinates $coordinates): ReverseQuery
77+
public function withCoordinates(Coordinates $coordinates): self
7878
{
7979
$new = clone $this;
8080
$new->coordinates = $coordinates;
@@ -87,7 +87,7 @@ public function withCoordinates(Coordinates $coordinates): ReverseQuery
8787
*
8888
* @return ReverseQuery
8989
*/
90-
public function withLimit(int $limit): ReverseQuery
90+
public function withLimit(int $limit): self
9191
{
9292
$new = clone $this;
9393
$new->limit = $limit;
@@ -100,7 +100,7 @@ public function withLimit(int $limit): ReverseQuery
100100
*
101101
* @return ReverseQuery
102102
*/
103-
public function withLocale(string $locale): ReverseQuery
103+
public function withLocale(string $locale): self
104104
{
105105
$new = clone $this;
106106
$new->locale = $locale;
@@ -114,7 +114,7 @@ public function withLocale(string $locale): ReverseQuery
114114
*
115115
* @return ReverseQuery
116116
*/
117-
public function withData(string $name, $value): ReverseQuery
117+
public function withData(string $name, $value): self
118118
{
119119
$new = clone $this;
120120
$new->data[$name] = $value;

0 commit comments

Comments
 (0)