Skip to content

Commit ad92a18

Browse files
authored
Fix camel case format for ignored case (#2000)
1 parent d6e523d commit ad92a18

4 files changed

Lines changed: 20 additions & 19 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
- Apply new CodingStandard from latest php-cs-fixer.
1212
- AWS enhancement: Documentation updates.
13+
- change case of `getFilterBbox` method to `getFilterBBox` and `getRouteBbox` method to `getRouteBBox`
1314

1415
## 1.1.2
1516

‎src/Input/SearchPlaceIndexForTextRequest.php‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ final class SearchPlaceIndexForTextRequest extends Input
5858
*
5959
* @var float[]|null
6060
*/
61-
private $filterBbox;
61+
private $filterBBox;
6262

6363
/**
6464
* An optional parameter that limits the search results by returning only places that are in a specified list of
@@ -145,7 +145,7 @@ public function __construct(array $input = [])
145145
$this->indexName = $input['IndexName'] ?? null;
146146
$this->text = $input['Text'] ?? null;
147147
$this->biasPosition = $input['BiasPosition'] ?? null;
148-
$this->filterBbox = $input['FilterBBox'] ?? null;
148+
$this->filterBBox = $input['FilterBBox'] ?? null;
149149
$this->filterCountries = $input['FilterCountries'] ?? null;
150150
$this->maxResults = $input['MaxResults'] ?? null;
151151
$this->language = $input['Language'] ?? null;
@@ -184,9 +184,9 @@ public function getBiasPosition(): array
184184
/**
185185
* @return float[]
186186
*/
187-
public function getFilterBbox(): array
187+
public function getFilterBBox(): array
188188
{
189-
return $this->filterBbox ?? [];
189+
return $this->filterBBox ?? [];
190190
}
191191

192192
/**
@@ -276,9 +276,9 @@ public function setBiasPosition(array $value): self
276276
/**
277277
* @param float[] $value
278278
*/
279-
public function setFilterBbox(array $value): self
279+
public function setFilterBBox(array $value): self
280280
{
281-
$this->filterBbox = $value;
281+
$this->filterBBox = $value;
282282

283283
return $this;
284284
}
@@ -354,7 +354,7 @@ private function requestBody(): array
354354
$payload['BiasPosition'][$index] = $listValue;
355355
}
356356
}
357-
if (null !== $v = $this->filterBbox) {
357+
if (null !== $v = $this->filterBBox) {
358358
$index = -1;
359359
$payload['FilterBBox'] = [];
360360
foreach ($v as $listValue) {

‎src/ValueObject/CalculateRouteSummary.php‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ final class CalculateRouteSummary
2626
*
2727
* @var float[]
2828
*/
29-
private $routeBbox;
29+
private $routeBBox;
3030

3131
/**
3232
* The data provider of traffic and road network data used to calculate the route. Indicates one of the available
@@ -79,7 +79,7 @@ final class CalculateRouteSummary
7979
*/
8080
public function __construct(array $input)
8181
{
82-
$this->routeBbox = $input['RouteBBox'] ?? $this->throwException(new InvalidArgument('Missing required field "RouteBBox".'));
82+
$this->routeBBox = $input['RouteBBox'] ?? $this->throwException(new InvalidArgument('Missing required field "RouteBBox".'));
8383
$this->dataSource = $input['DataSource'] ?? $this->throwException(new InvalidArgument('Missing required field "DataSource".'));
8484
$this->distance = $input['Distance'] ?? $this->throwException(new InvalidArgument('Missing required field "Distance".'));
8585
$this->durationSeconds = $input['DurationSeconds'] ?? $this->throwException(new InvalidArgument('Missing required field "DurationSeconds".'));
@@ -126,9 +126,9 @@ public function getDurationSeconds(): float
126126
/**
127127
* @return float[]
128128
*/
129-
public function getRouteBbox(): array
129+
public function getRouteBBox(): array
130130
{
131-
return $this->routeBbox;
131+
return $this->routeBBox;
132132
}
133133

134134
/**

‎src/ValueObject/SearchPlaceIndexForTextSummary.php‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ final class SearchPlaceIndexForTextSummary
3333
*
3434
* @var float[]|null
3535
*/
36-
private $filterBbox;
36+
private $filterBBox;
3737

3838
/**
3939
* Contains the optional country filter specified in the request.
@@ -56,7 +56,7 @@ final class SearchPlaceIndexForTextSummary
5656
*
5757
* @var float[]|null
5858
*/
59-
private $resultBbox;
59+
private $resultBBox;
6060

6161
/**
6262
* The geospatial data provider attached to the place index resource specified in the request. Values can be one of the
@@ -108,10 +108,10 @@ public function __construct(array $input)
108108
{
109109
$this->text = $input['Text'] ?? $this->throwException(new InvalidArgument('Missing required field "Text".'));
110110
$this->biasPosition = $input['BiasPosition'] ?? null;
111-
$this->filterBbox = $input['FilterBBox'] ?? null;
111+
$this->filterBBox = $input['FilterBBox'] ?? null;
112112
$this->filterCountries = $input['FilterCountries'] ?? null;
113113
$this->maxResults = $input['MaxResults'] ?? null;
114-
$this->resultBbox = $input['ResultBBox'] ?? null;
114+
$this->resultBBox = $input['ResultBBox'] ?? null;
115115
$this->dataSource = $input['DataSource'] ?? $this->throwException(new InvalidArgument('Missing required field "DataSource".'));
116116
$this->language = $input['Language'] ?? null;
117117
$this->filterCategories = $input['FilterCategories'] ?? null;
@@ -151,9 +151,9 @@ public function getDataSource(): string
151151
/**
152152
* @return float[]
153153
*/
154-
public function getFilterBbox(): array
154+
public function getFilterBBox(): array
155155
{
156-
return $this->filterBbox ?? [];
156+
return $this->filterBBox ?? [];
157157
}
158158

159159
/**
@@ -185,9 +185,9 @@ public function getMaxResults(): ?int
185185
/**
186186
* @return float[]
187187
*/
188-
public function getResultBbox(): array
188+
public function getResultBBox(): array
189189
{
190-
return $this->resultBbox ?? [];
190+
return $this->resultBBox ?? [];
191191
}
192192

193193
public function getText(): string

0 commit comments

Comments
 (0)