@@ -12,6 +12,9 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | class Filter extends AbstractAggregation |
| 14 | 14 | { |
| 15 | + /** |
|
| 16 | + * @param AbstractQuery $filter |
|
| 17 | + */ |
|
| 15 | 18 | public function __construct(string $name, ?AbstractQuery $filter = null) |
| 16 | 19 | { |
| 17 | 20 | parent::__construct($name); |
@@ -25,6 +25,7 @@ |
||
| 25 | 25 | * |
| 26 | 26 | * If a name is given, it will be added as a key, otherwise considered as an anonymous filter |
| 27 | 27 | * |
| 28 | + * @param string $name |
|
| 28 | 29 | * @return $this |
| 29 | 30 | */ |
| 30 | 31 | public function addFilter(AbstractQuery $filter, ?string $name = null): self |
@@ -164,7 +164,7 @@ |
||
| 164 | 164 | * Add value to a key. If original value is not an array, value is wrapped. |
| 165 | 165 | * |
| 166 | 166 | * @param string $key Key to add |
| 167 | - * @param mixed $value Value |
|
| 167 | + * @param string $value Value |
|
| 168 | 168 | */ |
| 169 | 169 | public function add(string $key, $value): void |
| 170 | 170 | { |
@@ -15,10 +15,10 @@ 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 string $args,... JSON string to parse |
|
| 19 | 18 | * |
| 20 | 19 | * @throws JSONParseException |
| 21 | 20 | * |
| 21 | + * @param string $args |
|
| 22 | 22 | * @return array PHP array representation of JSON string |
| 23 | 23 | */ |
| 24 | 24 | public static function parse($args/* inherit from json_decode */) |
@@ -49,7 +49,6 @@ discard block |
||
| 49 | 49 | * @see http://php.net/manual/en/function.json-encode.php |
| 50 | 50 | * @see http://php.net/manual/en/function.json-last-error.php |
| 51 | 51 | * |
| 52 | - * @param mixed $args,... Target to stringify |
|
| 53 | 52 | * |
| 54 | 53 | * @throws JSONParseException |
| 55 | 54 | * |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | /** |
| 41 | 41 | * Add must not part to query. |
| 42 | 42 | * |
| 43 | - * @param AbstractQuery|array $args Must not query |
|
| 43 | + * @param Ids $args Must not query |
|
| 44 | 44 | * |
| 45 | 45 | * @return $this |
| 46 | 46 | */ |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | /** |
| 94 | 94 | * Sets the minimum number of should clauses to match. |
| 95 | 95 | * |
| 96 | - * @param int|string $minimum Minimum value |
|
| 96 | + * @param integer $minimum Minimum value |
|
| 97 | 97 | * |
| 98 | 98 | * @return $this |
| 99 | 99 | */ |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | /** |
| 45 | 45 | * Set optional parameters on the existing query. |
| 46 | 46 | * |
| 47 | - * @param mixed $value Value of the parameter |
|
| 47 | + * @param double $value Value of the parameter |
|
| 48 | 48 | * |
| 49 | 49 | * @return $this |
| 50 | 50 | */ |
@@ -70,6 +70,7 @@ discard block |
||
| 70 | 70 | |
| 71 | 71 | /** |
| 72 | 72 | * Constructs search object. |
| 73 | + * @param BuilderInterface $builder |
|
| 73 | 74 | */ |
| 74 | 75 | public function __construct(Client $client, ?BuilderInterface $builder = null) |
| 75 | 76 | { |
@@ -102,7 +103,7 @@ discard block |
||
| 102 | 103 | /** |
| 103 | 104 | * Add array of indices at once. |
| 104 | 105 | * |
| 105 | - * @param Index[]|string[] $indices |
|
| 106 | + * @param Index[] $indices |
|
| 106 | 107 | */ |
| 107 | 108 | public function addIndices(array $indices = []): self |
| 108 | 109 | { |
@@ -254,7 +254,7 @@ discard block |
||
| 254 | 254 | * |
| 255 | 255 | * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html |
| 256 | 256 | * |
| 257 | - * @param array|\Elastica\Document[] $docs Array of Elastica\Document |
|
| 257 | + * @param Document[] $docs Array of Elastica\Document |
|
| 258 | 258 | * |
| 259 | 259 | * @throws InvalidException If docs is empty |
| 260 | 260 | */ |
@@ -376,7 +376,7 @@ discard block |
||
| 376 | 376 | /** |
| 377 | 377 | * Bulk deletes documents. |
| 378 | 378 | * |
| 379 | - * @param array|\Elastica\Document[] $docs |
|
| 379 | + * @param Document[] $docs |
|
| 380 | 380 | * |
| 381 | 381 | * @throws InvalidException |
| 382 | 382 | */ |
@@ -473,7 +473,7 @@ discard block |
||
| 473 | 473 | } |
| 474 | 474 | |
| 475 | 475 | /** |
| 476 | - * @param array|\Elastica\Connection[] $connections |
|
| 476 | + * @param Connection[] $connections |
|
| 477 | 477 | * |
| 478 | 478 | * @return $this |
| 479 | 479 | */ |
@@ -76,7 +76,7 @@ |
||
| 76 | 76 | /** |
| 77 | 77 | * Get the value of the given field. |
| 78 | 78 | * |
| 79 | - * @param mixed $key |
|
| 79 | + * @param string $key |
|
| 80 | 80 | * |
| 81 | 81 | * @throws InvalidException If the given field does not exist |
| 82 | 82 | * |