for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
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()
return $this->get();
}
public function toArray()
return [];
* Get the generator.
*
* @codingStandardsIgnoreStart
* @return \Generator
* The generator
* @codingStandardsIgnoreEnd
protected function get()
while (true) {
$this->next();
yield $this->current();