for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace loophp\collection\Operation;
use Closure;
use Generator;
use loophp\collection\Contract\Operation;
/**
* Class Rebase.
*/
final class Rebase implements Operation
{
* {@inheritdoc}
public function on(iterable $collection): Closure
return static function () use ($collection): Generator {
foreach ($collection as $value) {
yield $value;
}
};