@@ -68,6 +68,9 @@ discard block |
||
68 | 68 | */ |
69 | 69 | private $builder; |
70 | 70 | |
71 | + /** |
|
72 | + * @param BuilderInterface $builder |
|
73 | + */ |
|
71 | 74 | public function __construct(Client $client, ?BuilderInterface $builder = null) |
72 | 75 | { |
73 | 76 | $this->_client = $client; |
@@ -99,7 +102,7 @@ discard block |
||
99 | 102 | /** |
100 | 103 | * Add array of indices at once. |
101 | 104 | * |
102 | - * @param Index[]|string[] $indices |
|
105 | + * @param Index[] $indices |
|
103 | 106 | */ |
104 | 107 | public function addIndices(array $indices = []): self |
105 | 108 | { |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | * NOTICE php will encode modified(or named keys) array into object format in json format request |
213 | 213 | * so the fields array must a sequence(list) type of array. |
214 | 214 | * |
215 | - * @param array $fields Fields to be returned |
|
215 | + * @param string[] $fields Fields to be returned |
|
216 | 216 | * |
217 | 217 | * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-body.html#request-body-search-stored-fields |
218 | 218 | */ |
@@ -349,7 +349,7 @@ discard block |
||
349 | 349 | /** |
350 | 350 | * Sets the _source field to be returned with every hit. |
351 | 351 | * |
352 | - * @param array|bool $params Fields to be returned or false to disable source |
|
352 | + * @param boolean $params Fields to be returned or false to disable source |
|
353 | 353 | * |
354 | 354 | * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-body.html#request-body-search-source-filtering |
355 | 355 | */ |
@@ -8,7 +8,7 @@ |
||
8 | 8 | * Setting the keyed flag to true associates a unique string key |
9 | 9 | * with each bucket and returns the result as a hash rather than an array. |
10 | 10 | * |
11 | - * @return $this |
|
11 | + * @return \Elastica\Aggregation\AbstractAggregation |
|
12 | 12 | */ |
13 | 13 | public function setKeyed(bool $keyed = true): self |
14 | 14 | { |
@@ -15,7 +15,6 @@ discard block |
||
15 | 15 | * @see http://php.net/manual/en/function.json-decode.php |
16 | 16 | * @see http://php.net/manual/en/function.json-last-error.php |
17 | 17 | * |
18 | - * @param mixed $args,... JSON string to parse |
|
19 | 18 | * |
20 | 19 | * @throws JSONParseException |
21 | 20 | * |
@@ -46,7 +45,6 @@ discard block |
||
46 | 45 | * @see http://php.net/manual/en/function.json-encode.php |
47 | 46 | * @see http://php.net/manual/en/function.json-last-error.php |
48 | 47 | * |
49 | - * @param mixed $args,... Target to stringify |
|
50 | 48 | * |
51 | 49 | * @throws JSONParseException |
52 | 50 | * |