@@ -221,7 +221,7 @@ |
||
221 | 221 | * Checks if all required parameters are set. |
222 | 222 | * |
223 | 223 | * @param array $data |
224 | - * @param array $required |
|
224 | + * @param string[] $required |
|
225 | 225 | * |
226 | 226 | * @throws \LogicException |
227 | 227 | */ |
@@ -648,7 +648,7 @@ |
||
648 | 648 | |
649 | 649 | /** |
650 | 650 | * @param string $name |
651 | - * @param string|array|bool $value |
|
651 | + * @param string $value |
|
652 | 652 | * |
653 | 653 | * @return $this |
654 | 654 | */ |
@@ -406,12 +406,12 @@ discard block |
||
406 | 406 | } |
407 | 407 | |
408 | 408 | /** |
409 | - * Adds suggest into search. |
|
410 | - * |
|
411 | - * @param BuilderInterface $suggest |
|
412 | - * |
|
413 | - * @return $this |
|
414 | - */ |
|
409 | + * Adds suggest into search. |
|
410 | + * |
|
411 | + * @param BuilderInterface $suggest |
|
412 | + * |
|
413 | + * @return $this |
|
414 | + */ |
|
415 | 415 | public function addSuggest(NamedBuilderInterface $suggest) |
416 | 416 | { |
417 | 417 | $this->getEndpoint(SuggestEndpoint::NAME)->add($suggest, $suggest->getName()); |
@@ -420,10 +420,10 @@ discard block |
||
420 | 420 | } |
421 | 421 | |
422 | 422 | /** |
423 | - * Returns all suggests. |
|
424 | - * |
|
425 | - * @return BuilderInterface[] |
|
426 | - */ |
|
423 | + * Returns all suggests. |
|
424 | + * |
|
425 | + * @return BuilderInterface[] |
|
426 | + */ |
|
427 | 427 | public function getSuggests() |
428 | 428 | { |
429 | 429 | return $this->getEndpoint(SuggestEndpoint::NAME)->getAll(); |
@@ -108,7 +108,7 @@ |
||
108 | 108 | * Returns sub aggregation. |
109 | 109 | * @param string $name Aggregation name to return. |
110 | 110 | * |
111 | - * @return AbstractAggregation|NamedBuilderInterface|null |
|
111 | + * @return \ONGR\ElasticsearchDSL\BuilderInterface|null |
|
112 | 112 | */ |
113 | 113 | public function getAggregation($name) |
114 | 114 | { |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | |
137 | 137 | /** |
138 | 138 | * @param string $distanceType |
139 | - * @return GeoSort |
|
139 | + * @return GeoDistanceSort |
|
140 | 140 | */ |
141 | 141 | public function setDistanceType($distanceType) |
142 | 142 | { |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | |
156 | 156 | /** |
157 | 157 | * @param string $location |
158 | - * @return GeoSort |
|
158 | + * @return GeoDistanceSort |
|
159 | 159 | */ |
160 | 160 | public function setLocation($location) |
161 | 161 | { |