-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
466 additions
and
694 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,22 +4,30 @@ | |
|
||
namespace Kiboko\Component\Pipeline; | ||
|
||
use Kiboko\Contract\Bucket\ResultBucketInterface; | ||
|
||
/** | ||
* @template Type | ||
*/ | ||
class GeneratorWrapper | ||
{ | ||
/** @param \Iterator<mixed, mixed> ...$iterators */ | ||
public function rewind(\Iterator ...$iterators): void | ||
{ | ||
foreach ($iterators as $iterator) { | ||
Check warning on line 17 in src/GeneratorWrapper.php GitHub Actions / infection
|
||
$iterator->rewind(); | ||
Check warning on line 18 in src/GeneratorWrapper.php GitHub Actions / infection
|
||
} | ||
} | ||
|
||
/** @param \Iterator<mixed, mixed> ...$iterators */ | ||
public function next(\Iterator ...$iterators): void | ||
{ | ||
foreach ($iterators as $iterator) { | ||
$iterator->next(); | ||
} | ||
} | ||
|
||
/** @param \Iterator<mixed, mixed> ...$iterators */ | ||
public function valid(\Iterator ...$iterators): bool | ||
{ | ||
foreach ($iterators as $iterator) { | ||
Check warning on line 33 in src/GeneratorWrapper.php GitHub Actions / infection
|
||
|
@@ -31,6 +39,10 @@ public function valid(\Iterator ...$iterators): bool | |
return true; | ||
} | ||
|
||
/** | ||
* @param Type $value | ||
* @param \Generator<array-key, ResultBucketInterface<Type>, Type|null, void> ...$generators | ||
*/ | ||
public function send($value, \Generator ...$generators): \Generator | ||
{ | ||
foreach ($generators as $generator) { | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.