Documentation

PHP_CodeCoverage_Report_Node_Iterator
in package
implements RecursiveIterator

Recursive iterator for PHP_CodeCoverage_Report_Node object graphs.

Tags
since

Class available since Release 1.1.0

Interfaces, Classes and Traits

RecursiveIterator

Table of Contents

$nodes  : array<string|int, PHP_CodeCoverage_Report_Node>
$position  : int
__construct()  : mixed
Constructor.
current()  : PHPUnit_Framework_Test
Returns the current element.
getChildren()  : PHP_CodeCoverage_Report_Node_Iterator
Returns the sub iterator for the current element.
hasChildren()  : bool
Checks whether the current element has children.
key()  : int
Returns the key of the current element.
next()  : mixed
Moves forward to next element.
rewind()  : mixed
Rewinds the Iterator to the first element.
valid()  : bool
Checks if there is a current element after calls to rewind() or next().

Properties

Methods

hasChildren()

Checks whether the current element has children.

public hasChildren() : bool
Return values
bool

key()

Returns the key of the current element.

public key() : int
Return values
int

next()

Moves forward to next element.

public next() : mixed
Return values
mixed

rewind()

Rewinds the Iterator to the first element.

public rewind() : mixed
Return values
mixed

valid()

Checks if there is a current element after calls to rewind() or next().

public valid() : bool
Return values
bool

Search results