@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | /** |
| 27 | 27 | * Creates an instance using the values of an array or Traversable object. |
| 28 | 28 | * |
| 29 | - * @param array|\Traversable|null $values |
|
| 29 | + * @param Map $values |
|
| 30 | 30 | */ |
| 31 | 31 | public function __construct($values = null) |
| 32 | 32 | { |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | /** |
| 113 | 113 | * Merge an array of values with the current Map |
| 114 | 114 | * |
| 115 | - * @param array|\Traversable $values |
|
| 115 | + * @param Map $values |
|
| 116 | 116 | * |
| 117 | 117 | * @return Map |
| 118 | 118 | */ |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | * Creates a new set using the values of an array or Traversable object. |
| 27 | 27 | * The keys of either will not be preserved. |
| 28 | 28 | * |
| 29 | - * @param array|\Traversable|null $values |
|
| 29 | + * @param Set $values |
|
| 30 | 30 | */ |
| 31 | 31 | public function __construct($values = null) |
| 32 | 32 | { |
@@ -10,6 +10,7 @@ discard block |
||
| 10 | 10 | { |
| 11 | 11 | /** |
| 12 | 12 | * Removes all values from the collection. |
| 13 | + * @return void |
|
| 13 | 14 | */ |
| 14 | 15 | function clear(); |
| 15 | 16 | |
@@ -23,7 +24,7 @@ discard block |
||
| 23 | 24 | /** |
| 24 | 25 | * Returns the size of the collection. |
| 25 | 26 | * |
| 26 | - * @return int |
|
| 27 | + * @return Collection |
|
| 27 | 28 | */ |
| 28 | 29 | function copy(): Collection; |
| 29 | 30 | |
@@ -13,6 +13,7 @@ discard block |
||
| 13 | 13 | * object as initial values. |
| 14 | 14 | * |
| 15 | 15 | * @param array|\Traversable|null $values |
| 16 | + * @return void |
|
| 16 | 17 | */ |
| 17 | 18 | function __construct($values = null); |
| 18 | 19 | |
@@ -22,6 +23,7 @@ discard block |
||
| 22 | 23 | * @param int $capacity The number of values for which capacity should be |
| 23 | 24 | * allocated. Capacity will stay the same if this value |
| 24 | 25 | * is less than or equal to the current capacity. |
| 26 | + * @return void |
|
| 25 | 27 | */ |
| 26 | 28 | function allocate(int $capacity); |
| 27 | 29 | |
@@ -30,6 +32,7 @@ discard block |
||
| 30 | 32 | * return value as the new value. |
| 31 | 33 | * |
| 32 | 34 | * @param callable $callback Accepts the value, returns the new value. |
| 35 | + * @return void |
|
| 33 | 36 | */ |
| 34 | 37 | function apply(callable $callback); |
| 35 | 38 | |
@@ -101,6 +104,7 @@ discard block |
||
| 101 | 104 | * @param mixed ...$values |
| 102 | 105 | * |
| 103 | 106 | * @throws \OutOfRangeException if the index is not in the range [0, n] |
| 107 | + * @return void |
|
| 104 | 108 | */ |
| 105 | 109 | function insert(int $index, ...$values); |
| 106 | 110 | |
@@ -155,6 +159,7 @@ discard block |
||
| 155 | 159 | * Adds zero or more values to the end of the sequence. |
| 156 | 160 | * |
| 157 | 161 | * @param mixed ...$values |
| 162 | + * @return void |
|
| 158 | 163 | */ |
| 159 | 164 | function push(...$values); |
| 160 | 165 | |
@@ -184,6 +189,7 @@ discard block |
||
| 184 | 189 | |
| 185 | 190 | /** |
| 186 | 191 | * Reverses the sequence in-place. |
| 192 | + * @return void |
|
| 187 | 193 | */ |
| 188 | 194 | function reverse(); |
| 189 | 195 | |
@@ -200,6 +206,7 @@ discard block |
||
| 200 | 206 | * positive, or 'pop' and 'unshift' if negative. |
| 201 | 207 | * |
| 202 | 208 | * @param int $rotations The number of rotations (can be negative). |
| 209 | + * @return void |
|
| 203 | 210 | */ |
| 204 | 211 | function rotate(int $rotations); |
| 205 | 212 | |
@@ -210,6 +217,7 @@ discard block |
||
| 210 | 217 | * @param mixed $value |
| 211 | 218 | * |
| 212 | 219 | * @throws \OutOfRangeException if the index is not in the range [0, size-1] |
| 220 | + * @return void |
|
| 213 | 221 | */ |
| 214 | 222 | function set(int $index, $value); |
| 215 | 223 | |
@@ -251,6 +259,7 @@ discard block |
||
| 251 | 259 | * |
| 252 | 260 | * @param callable|null $comparator Accepts two values to be compared. |
| 253 | 261 | * Should return the result of a <=> b. |
| 262 | + * @return void |
|
| 254 | 263 | */ |
| 255 | 264 | function sort(callable $comparator = null); |
| 256 | 265 | |
@@ -276,6 +285,7 @@ discard block |
||
| 276 | 285 | * Adds zero or more values to the front of the sequence. |
| 277 | 286 | * |
| 278 | 287 | * @param mixed ...$values |
| 288 | + * @return void |
|
| 279 | 289 | */ |
| 280 | 290 | function unshift(...$values); |
| 281 | 291 | } |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | /** |
| 35 | 35 | * Creates a copy of the collection. |
| 36 | 36 | * |
| 37 | - * @return self |
|
| 37 | + * @return \Ds\Collection |
|
| 38 | 38 | */ |
| 39 | 39 | public function copy(): \Ds\Collection |
| 40 | 40 | { |