@@ -72,6 +72,9 @@ |
||
72 | 72 | $container->setParameter(Configuration::ONGR_DEFAULT_INDEX, $defaultIndex); |
73 | 73 | } |
74 | 74 | |
75 | + /** |
|
76 | + * @param string $directory |
|
77 | + */ |
|
75 | 78 | private function getNamespaces($directory): array |
76 | 79 | { |
77 | 80 | if (!is_dir($directory)) { |
@@ -21,7 +21,6 @@ |
||
21 | 21 | |
22 | 22 | /** |
23 | 23 | * @param Container $container |
24 | - * @param IndexService[] $managers |
|
25 | 24 | */ |
26 | 25 | public function __construct(Container $container, array $indexes) |
27 | 26 | { |
@@ -47,6 +47,9 @@ discard block |
||
47 | 47 | AnnotationRegistry::registerLoader('class_exists'); |
48 | 48 | } |
49 | 49 | |
50 | + /** |
|
51 | + * @param string $namespace |
|
52 | + */ |
|
50 | 53 | public function getIndexAliasName($namespace): string |
51 | 54 | { |
52 | 55 | $class = new \ReflectionClass($namespace); |
@@ -80,6 +83,9 @@ discard block |
||
80 | 83 | return $document->typeName ?? '_doc'; |
81 | 84 | } |
82 | 85 | |
86 | + /** |
|
87 | + * @param string $namespace |
|
88 | + */ |
|
83 | 89 | public function getIndexMetadata($namespace): array |
84 | 90 | { |
85 | 91 | $class = new \ReflectionClass($namespace); |
@@ -217,8 +217,8 @@ discard block |
||
217 | 217 | * |
218 | 218 | * @param array $criteria Example: ['group' => ['best', 'worst'], 'job' => 'medic']. |
219 | 219 | * @param array|null $orderBy Example: ['name' => 'ASC', 'surname' => 'DESC']. |
220 | - * @param int|null $limit Default is 10. |
|
221 | - * @param int|null $offset Default is 0. |
|
220 | + * @param integer $limit Default is 10. |
|
221 | + * @param integer $offset Default is 0. |
|
222 | 222 | * |
223 | 223 | * @return array|DocumentIterator The objects. |
224 | 224 | */ |
@@ -261,6 +261,9 @@ discard block |
||
261 | 261 | return new Search(); |
262 | 262 | } |
263 | 263 | |
264 | + /** |
|
265 | + * @param string $scrollDuration |
|
266 | + */ |
|
264 | 267 | public function getScrollConfiguration($raw, $scrollDuration): array |
265 | 268 | { |
266 | 269 | $scrollConfig = []; |
@@ -59,6 +59,9 @@ |
||
59 | 59 | return $this->index; |
60 | 60 | } |
61 | 61 | |
62 | + /** |
|
63 | + * @return resource |
|
64 | + */ |
|
62 | 65 | protected function getFileHandler() |
63 | 66 | { |
64 | 67 | //Make sure the gzip option is resolved from a filename. |