public function getGenerator(): \Generator
    {
        if ($this->generator instanceof ArrayyRewindableGenerator) {
            yield from $this->generator;
        }

        yield from $this->array;
    }
public function getGenerator(): \Generator
    {
        if ($this->generator instanceof ArrayyRewindableGenerator) {
            yield from $this->generator;
        }

        yield from $this->array;
    }
public function getGenerator ( ) : \ Generator { if ( $ this -> generator instanceof ArrayyRewindableGenerator ) { yield from $ this -> generator ; } yield from $ this -> array ; }
Get the current array from the "Arrayy"-object as generator.

@return \Generator
Get the current array from the Arrayy - object as generator .