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.
*/
class Shift extends ShiftIterator implements GeneratorInterface
{
* {@inheritdoc}
public function generator()
while (true) {
$this->next();
yield $this->current();
}
public function toArray()
return [];