PHP Class Jackalope\Query\RowIterator

Inheritance: implements SeekableIterator, implements Countable
Show file Open project: jackalope/jackalope

Protected Properties

Property Type Description
$factory Jackalope\FactoryInterface
$objectManager Jackalope\ObjectManager
$position integer
$rows array

Public Methods

Method Description
__construct ( Jackalope\FactoryInterface $factory, ObjectManager $objectManager, array $rows ) Create the iterator.
count ( ) : integer
current ( )
key ( )
next ( )
rewind ( )
seek ( integer $position )
valid ( ) : boolean

Method Details

__construct() public method

Create the iterator.
public __construct ( Jackalope\FactoryInterface $factory, ObjectManager $objectManager, array $rows )
$factory Jackalope\FactoryInterface the object factory
$objectManager Jackalope\ObjectManager
$rows array Raw data as described in QueryResult and \Jackalope\Transport\TransportInterface

count() public method

public count ( ) : integer
return integer

current() public method

public current ( )

key() public method

public key ( )

next() public method

public next ( )

rewind() public method

public rewind ( )

seek() public method

public seek ( integer $position )
$position integer

valid() public method

public valid ( ) : boolean
return boolean

Property Details

$factory protected property

protected FactoryInterface,Jackalope $factory
return Jackalope\FactoryInterface

$objectManager protected property

protected ObjectManager,Jackalope $objectManager
return Jackalope\ObjectManager

$position protected property

protected int $position
return integer

$rows protected property

protected array $rows
return array