@@ -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 | { |
@@ -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 | */ |
@@ -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 | * |
@@ -154,7 +154,7 @@ |
||
| 154 | 154 | /** |
| 155 | 155 | * Update entries in the db based on a query. |
| 156 | 156 | * |
| 157 | - * @param array|Query|string $query Query object or array |
|
| 157 | + * @param string $query Query object or array |
|
| 158 | 158 | * @param AbstractScript $script Script |
| 159 | 159 | * @param array $options Optional params |
| 160 | 160 | * |
@@ -188,7 +188,7 @@ discard block |
||
| 188 | 188 | } |
| 189 | 189 | |
| 190 | 190 | /** |
| 191 | - * @param array|string $fields |
|
| 191 | + * @param string $fields |
|
| 192 | 192 | * |
| 193 | 193 | * @return $this |
| 194 | 194 | */ |
@@ -393,7 +393,7 @@ discard block |
||
| 393 | 393 | } |
| 394 | 394 | |
| 395 | 395 | /** |
| 396 | - * @param array $fields if empty array all options will be returned |
|
| 396 | + * @param string[] $fields if empty array all options will be returned |
|
| 397 | 397 | * |
| 398 | 398 | * @return array |
| 399 | 399 | */ |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | * Create new info object for node. |
| 54 | 54 | * |
| 55 | 55 | * @param BaseNode $node Node object |
| 56 | - * @param array $params List of params to return. Can be: settings, os, process, jvm, thread_pool, network, transport, http |
|
| 56 | + * @param string[] $params List of params to return. Can be: settings, os, process, jvm, thread_pool, network, transport, http |
|
| 57 | 57 | */ |
| 58 | 58 | public function __construct(BaseNode $node, array $params = []) |
| 59 | 59 | { |