@@ -61,7 +61,7 @@ |
||
| 61 | 61 | * node is running on |
| 62 | 62 | * Example 2: get('os', 'mem') returns an array with all mem infos |
| 63 | 63 | * |
| 64 | - * @return mixed Data array entry or null if not found |
|
| 64 | + * @return string Data array entry or null if not found |
|
| 65 | 65 | */ |
| 66 | 66 | public function get() |
| 67 | 67 | { |
@@ -12,7 +12,6 @@ |
||
| 12 | 12 | /** |
| 13 | 13 | * Set the type for this aggregation. |
| 14 | 14 | * |
| 15 | - * @param string $field the child type the buckets in the parent space should be mapped to |
|
| 16 | 15 | * |
| 17 | 16 | * @return $this |
| 18 | 17 | */ |
@@ -435,7 +435,7 @@ |
||
| 435 | 435 | /** |
| 436 | 436 | * Sets post_filter argument for the query. The filter is applied after the query has executed. |
| 437 | 437 | * |
| 438 | - * @param array|\Elastica\Query\AbstractQuery $filter |
|
| 438 | + * @param AbstractQuery $filter |
|
| 439 | 439 | * |
| 440 | 440 | * @return $this |
| 441 | 441 | * |
@@ -35,10 +35,10 @@ |
||
| 35 | 35 | /** |
| 36 | 36 | * Creates a new document. |
| 37 | 37 | * |
| 38 | - * @param int|string $id OPTIONAL $id Id is create if empty |
|
| 38 | + * @param string $id OPTIONAL $id Id is create if empty |
|
| 39 | 39 | * @param array|string $data OPTIONAL Data array |
| 40 | - * @param Type|string $type OPTIONAL Type name |
|
| 41 | - * @param Index|string $index OPTIONAL Index name |
|
| 40 | + * @param string $type OPTIONAL Type name |
|
| 41 | + * @param Index $index OPTIONAL Index name |
|
| 42 | 42 | */ |
| 43 | 43 | public function __construct($id = '', $data = [], $type = '', $index = '') |
| 44 | 44 | { |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | } |
| 128 | 128 | |
| 129 | 129 | /** |
| 130 | - * @param string|Index $index |
|
| 130 | + * @param string $index |
|
| 131 | 131 | * |
| 132 | 132 | * @return $this |
| 133 | 133 | */ |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | } |
| 171 | 171 | |
| 172 | 172 | /** |
| 173 | - * @param string|int $routing |
|
| 173 | + * @param string|boolean $routing |
|
| 174 | 174 | * |
| 175 | 175 | * @return $this |
| 176 | 176 | */ |
@@ -213,7 +213,7 @@ discard block |
||
| 213 | 213 | * Sets / overwrites a specific config value. |
| 214 | 214 | * |
| 215 | 215 | * @param string $key Key to set |
| 216 | - * @param mixed $value Value |
|
| 216 | + * @param string $value Value |
|
| 217 | 217 | * |
| 218 | 218 | * @return $this |
| 219 | 219 | */ |
@@ -223,8 +223,8 @@ discard block |
||
| 223 | 223 | } |
| 224 | 224 | |
| 225 | 225 | /** |
| 226 | - * @param array|string $keys config key or path of config keys |
|
| 227 | - * @param mixed $default default value will be returned if key was not found |
|
| 226 | + * @param string[] $keys config key or path of config keys |
|
| 227 | + * @param boolean $default default value will be returned if key was not found |
|
| 228 | 228 | * |
| 229 | 229 | * @return mixed |
| 230 | 230 | */ |
@@ -598,8 +598,8 @@ discard block |
||
| 598 | 598 | * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html |
| 599 | 599 | * |
| 600 | 600 | * @param array $ids Document ids |
| 601 | - * @param string|\Elastica\Index $index Index name |
|
| 602 | - * @param string|\Elastica\Type $type Type of documents |
|
| 601 | + * @param Index $index Index name |
|
| 602 | + * @param Type $type Type of documents |
|
| 603 | 603 | * @param string|bool $routing Optional routing key for all ids |
| 604 | 604 | * |
| 605 | 605 | * @throws \Elastica\Exception\InvalidException |
@@ -280,7 +280,7 @@ |
||
| 280 | 280 | * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-create-index.html |
| 281 | 281 | * |
| 282 | 282 | * @param array $args OPTIONAL Arguments to use |
| 283 | - * @param bool|array $options OPTIONAL |
|
| 283 | + * @param boolean $options OPTIONAL |
|
| 284 | 284 | * bool=> Deletes index first if already exists (default = false). |
| 285 | 285 | * array => Associative array of options (option=>value) |
| 286 | 286 | * |
@@ -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 | * |