Pinq\Iterators\Standard\IGeneratorAdapter::buildGeneratorWrapper PHP Метод

buildGeneratorWrapper() защищенный Метод

hence we should be able to utilise generator in this iterator
protected buildGeneratorWrapper ( )
    protected function buildGeneratorWrapper()
    {
        foreach ($this->generator as $key => &$value) {
            (yield null);
            $this->currentKey = $key;
            $this->currentValue =& $value;
        }
    }