@@ -8,6 +8,9 @@ |
||
8 | 8 | */ |
9 | 9 | interface SetInterface extends SizeableInterface, PrimitiveInterface, \Countable, \Iterator |
10 | 10 | { |
11 | + /** |
|
12 | + * @return void |
|
13 | + */ |
|
11 | 14 | public function __construct(string $type); |
12 | 15 | |
13 | 16 | /** |
@@ -78,7 +78,7 @@ |
||
78 | 78 | * |
79 | 79 | * @return self |
80 | 80 | */ |
81 | - public function foreach(callable $function): self; |
|
81 | + public function foreach (callable $function): self; |
|
82 | 82 | |
83 | 83 | /** |
84 | 84 | * Return a new map of pairs grouped by keys determined with the given |
@@ -8,6 +8,9 @@ |
||
8 | 8 | */ |
9 | 9 | interface SetInterface extends SizeableInterface, PrimitiveInterface, \Countable, \Iterator |
10 | 10 | { |
11 | + /** |
|
12 | + * @return void |
|
13 | + */ |
|
11 | 14 | public function __construct(string $type); |
12 | 15 | |
13 | 16 | /** |
@@ -78,7 +78,7 @@ |
||
78 | 78 | * |
79 | 79 | * @return self |
80 | 80 | */ |
81 | - public function foreach(callable $function): self; |
|
81 | + public function foreach (callable $function): self; |
|
82 | 82 | |
83 | 83 | /** |
84 | 84 | * Return a new map of pairs grouped by keys determined with the given |
@@ -191,7 +191,7 @@ |
||
191 | 191 | /** |
192 | 192 | * {@inheritdoc} |
193 | 193 | */ |
194 | - public function foreach(callable $function): SetInterface |
|
194 | + public function foreach (callable $function): SetInterface |
|
195 | 195 | { |
196 | 196 | $this->values->foreach($function); |
197 | 197 |
@@ -264,7 +264,7 @@ |
||
264 | 264 | /** |
265 | 265 | * {@inheritdoc} |
266 | 266 | */ |
267 | - public function foreach(callable $function): MapInterface |
|
267 | + public function foreach (callable $function): MapInterface |
|
268 | 268 | { |
269 | 269 | foreach ($this->pairs as $pair) { |
270 | 270 | $function($pair->key(), $pair->value()); |
@@ -198,7 +198,7 @@ |
||
198 | 198 | /** |
199 | 199 | * {@inheritdoc} |
200 | 200 | */ |
201 | - public function foreach(callable $function): SequenceInterface |
|
201 | + public function foreach (callable $function): SequenceInterface |
|
202 | 202 | { |
203 | 203 | foreach ($this->values as $value) { |
204 | 204 | $function($value); |
@@ -78,7 +78,7 @@ |
||
78 | 78 | * |
79 | 79 | * @return self |
80 | 80 | */ |
81 | - public function foreach(callable $function): self; |
|
81 | + public function foreach (callable $function): self; |
|
82 | 82 | |
83 | 83 | /** |
84 | 84 | * Return a new map of pairs grouped by keys determined with the given |