@@ -125,6 +125,10 @@ |
||
| 125 | 125 | return $this->resultSet; |
| 126 | 126 | } |
| 127 | 127 | |
| 128 | + /** |
|
| 129 | + * @param integer|null $start |
|
| 130 | + * @param integer|null $rows |
|
| 131 | + */ |
|
| 128 | 132 | private function resultSetStartAndRowsAreNotNullAndChange($start, $rows) |
| 129 | 133 | { |
| 130 | 134 | return $this->resultSetStartAndRowsAreNotNull($start, $rows) && |
@@ -105,6 +105,9 @@ discard block |
||
| 105 | 105 | return $this->normalizeOutOfRangePages; |
| 106 | 106 | } |
| 107 | 107 | |
| 108 | + /** |
|
| 109 | + * @param boolean $value |
|
| 110 | + */ |
|
| 108 | 111 | private function filterBoolean($value) |
| 109 | 112 | { |
| 110 | 113 | if (!is_bool($value)) { |
@@ -134,6 +137,9 @@ discard block |
||
| 134 | 137 | return $this; |
| 135 | 138 | } |
| 136 | 139 | |
| 140 | + /** |
|
| 141 | + * @param integer $maxPerPage |
|
| 142 | + */ |
|
| 137 | 143 | private function filterMaxPerPage($maxPerPage) |
| 138 | 144 | { |
| 139 | 145 | $maxPerPage = $this->toInteger($maxPerPage); |
@@ -214,6 +220,10 @@ discard block |
||
| 214 | 220 | $this->useDeprecatedBooleanArgument($arguments, $index, $method); |
| 215 | 221 | } |
| 216 | 222 | |
| 223 | + /** |
|
| 224 | + * @param integer $index |
|
| 225 | + * @param string $method |
|
| 226 | + */ |
|
| 217 | 227 | private function useDeprecatedBooleanArgument($arguments, $index, $method) |
| 218 | 228 | { |
| 219 | 229 | if (isset($arguments[$index])) { |
@@ -221,6 +231,9 @@ discard block |
||
| 221 | 231 | } |
| 222 | 232 | } |
| 223 | 233 | |
| 234 | + /** |
|
| 235 | + * @param integer $currentPage |
|
| 236 | + */ |
|
| 224 | 237 | private function filterCurrentPage($currentPage) |
| 225 | 238 | { |
| 226 | 239 | $currentPage = $this->toInteger($currentPage); |
@@ -43,6 +43,9 @@ discard block |
||
| 43 | 43 | return DriverManager::getConnection($params); |
| 44 | 44 | } |
| 45 | 45 | |
| 46 | + /** |
|
| 47 | + * @param \Doctrine\DBAL\Connection $conn |
|
| 48 | + */ |
|
| 46 | 49 | private function createSchema($conn) |
| 47 | 50 | { |
| 48 | 51 | $schema = new Schema(); |
@@ -66,6 +69,9 @@ discard block |
||
| 66 | 69 | } |
| 67 | 70 | } |
| 68 | 71 | |
| 72 | + /** |
|
| 73 | + * @param \Doctrine\DBAL\Connection $conn |
|
| 74 | + */ |
|
| 69 | 75 | private function insertData($conn) |
| 70 | 76 | { |
| 71 | 77 | for ($i = 1; $i <= 50; $i++) { |
@@ -8,8 +8,19 @@ discard block |
||
| 8 | 8 | { |
| 9 | 9 | abstract protected function getSolariumName(); |
| 10 | 10 | |
| 11 | + /** |
|
| 12 | + * @return string |
|
| 13 | + */ |
|
| 11 | 14 | abstract protected function getClientClass(); |
| 15 | + |
|
| 16 | + /** |
|
| 17 | + * @return string |
|
| 18 | + */ |
|
| 12 | 19 | abstract protected function getQueryClass(); |
| 20 | + |
|
| 21 | + /** |
|
| 22 | + * @return string |
|
| 23 | + */ |
|
| 13 | 24 | abstract protected function getResultClass(); |
| 14 | 25 | |
| 15 | 26 | public function setUp() |
@@ -188,6 +199,9 @@ discard block |
||
| 188 | 199 | $this->doTestGetResultSet($query, $endPoint); |
| 189 | 200 | } |
| 190 | 201 | |
| 202 | + /** |
|
| 203 | + * @param null|string $endPoint |
|
| 204 | + */ |
|
| 191 | 205 | private function doTestGetResultSet($query, $endPoint) |
| 192 | 206 | { |
| 193 | 207 | $client = $this->createClientMock(); |
@@ -74,6 +74,9 @@ discard block |
||
| 74 | 74 | return $proximity; |
| 75 | 75 | } |
| 76 | 76 | |
| 77 | + /** |
|
| 78 | + * @param callable $routeGenerator |
|
| 79 | + */ |
|
| 77 | 80 | private function configureTemplate($routeGenerator, $options) |
| 78 | 81 | { |
| 79 | 82 | $this->template->setRouteGenerator($routeGenerator); |
@@ -134,6 +137,9 @@ discard block |
||
| 134 | 137 | return $endPage > $this->nbPages; |
| 135 | 138 | } |
| 136 | 139 | |
| 140 | + /** |
|
| 141 | + * @param integer $startPage |
|
| 142 | + */ |
|
| 137 | 143 | private function calculateEndPageForStartPageUnderflow($startPage, $endPage) |
| 138 | 144 | { |
| 139 | 145 | return min($endPage + (1 - $startPage), $this->nbPages); |