@@ -186,8 +186,8 @@ discard block |
||
| 186 | 186 | * |
| 187 | 187 | * @param array $criteria Example: ['group' => ['best', 'worst'], 'job' => 'medic']. |
| 188 | 188 | * @param array|null $orderBy Example: ['name' => 'ASC', 'surname' => 'DESC']. |
| 189 | - * @param int|null $limit Default is 10. |
|
| 190 | - * @param int|null $offset Default is 0. |
|
| 189 | + * @param integer $limit Default is 10. |
|
| 190 | + * @param integer $offset Default is 0. |
|
| 191 | 191 | * |
| 192 | 192 | * @return array|DocumentIterator The objects. |
| 193 | 193 | */ |
@@ -240,6 +240,9 @@ discard block |
||
| 240 | 240 | return new Search(); |
| 241 | 241 | } |
| 242 | 242 | |
| 243 | + /** |
|
| 244 | + * @param string $scrollDuration |
|
| 245 | + */ |
|
| 243 | 246 | public function getScrollConfiguration($raw, $scrollDuration): array |
| 244 | 247 | { |
| 245 | 248 | $scrollConfig = []; |
@@ -478,6 +481,10 @@ discard block |
||
| 478 | 481 | return $this->getClient()->indices()->clearCache(['index' => $this->getIndexName()]); |
| 479 | 482 | } |
| 480 | 483 | |
| 484 | + /** |
|
| 485 | + * @param string $action |
|
| 486 | + * @param string $name |
|
| 487 | + */ |
|
| 481 | 488 | private function stopwatch($action, $name): void |
| 482 | 489 | { |
| 483 | 490 | if ($this->stopwatch && ($action == 'start' || $action == 'stop')) { |