for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace drupol\phpermutations\Generators;
use drupol\phpermutations\GeneratorInterface;
use drupol\phpermutations\Iterators\Shift as ShiftIterator;
class Shift extends ShiftIterator implements GeneratorInterface
{
/**
* {@inheritdoc}
*/
public function generator(): \Generator
while (true) {
$this->next();
yield $this->current();
}
public function toArray(): array
return [];