for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace drupol\phpermutations\Generators;
use drupol\phpermutations\Iterators\ZGroup as ZGroupIterator;
/**
* Class ZGroup.
*
* Z is an abelian finite cyclic group.
* @package drupol\phpermutations\Generators
*/
class ZGroup extends ZGroupIterator {
* Alias of the get() method.
* @return \Generator
* The prime factors generator.
public function generator() {
return $this->get();
}
* The generator.
* @codingStandardsIgnoreStart
* @codingStandardsIgnoreEnd
protected function get() {
foreach ($this->group as $number) {
yield $number;