PHP Class Pinq\Iterators\Standard\IGeneratorAdapter

This class providers interoperability between the generator scheme and the standard scheme.
Author: Elliot Levin ([email protected])
Inheritance: extends IteratorAdapter
Show file Open project: timetoogo/pinq

Protected Properties

Property Type Description
$currentGeneratorWrapper Generator
$currentKey mixed
$currentValue mixed
$generator Pinq\Iterators\Generators\IGenerator

Public Methods

Method Description
__construct ( Pinq\Iterators\Generators\IGenerator $generator )
doRewind ( )

Protected Methods

Method Description
buildGeneratorWrapper ( ) hence we should be able to utilise generator in this iterator
doFetch ( )

Method Details

__construct() public method

public __construct ( Pinq\Iterators\Generators\IGenerator $generator )
$generator Pinq\Iterators\Generators\IGenerator

buildGeneratorWrapper() protected method

hence we should be able to utilise generator in this iterator
protected buildGeneratorWrapper ( )

doFetch() protected method

protected doFetch ( )

doRewind() public method

public doRewind ( )

Property Details

$currentGeneratorWrapper protected property

protected Generator $currentGeneratorWrapper
return Generator

$currentKey protected property

protected mixed $currentKey
return mixed

$currentValue protected property

protected mixed $currentValue
return mixed

$generator protected property

protected IGenerator,Pinq\Iterators\Generators $generator
return Pinq\Iterators\Generators\IGenerator