src/Entity/LocationSearchCriteria.php 1 location
|
@@ 75-84 (lines=10) @@
|
72 |
|
* |
73 |
|
* @throws BaseException |
74 |
|
*/ |
75 |
|
public function setMaximumListSize($maximumListSize) |
76 |
|
{ |
77 |
|
$maximumListSize = (int)$maximumListSize; |
78 |
|
|
79 |
|
if ($maximumListSize < 1 || $maximumListSize > 50) { |
80 |
|
throw new BaseException('Maximum list size: If present, indicates the maximum number of locations the client wishes to receive in response; ranges from 1 to 50 with a default value of 10'); |
81 |
|
} |
82 |
|
|
83 |
|
$this->maximumListSize = $maximumListSize; |
84 |
|
} |
85 |
|
} |
86 |
|
|
src/Entity/OriginAddress.php 1 location
|
@@ 55-64 (lines=10) @@
|
52 |
|
* |
53 |
|
* @throws \Exception |
54 |
|
*/ |
55 |
|
public function setMaximumListSize($maximumListSize) |
56 |
|
{ |
57 |
|
$maximumListSize = (int)$maximumListSize; |
58 |
|
|
59 |
|
if ($maximumListSize < 1 || $maximumListSize > 50) { |
60 |
|
throw new \Exception('Maximum list size: If present, indicates the maximum number of locations the client wishes to receive in response; ranges from 1 to 50 with a default value of 10'); |
61 |
|
} |
62 |
|
|
63 |
|
$this->maximumListSize = $maximumListSize; |
64 |
|
} |
65 |
|
|
66 |
|
/** |
67 |
|
* @return mixed |