PHP_CodeCoverage_Report_Node_Iterator
in package
implements
RecursiveIterator
Recursive iterator for PHP_CodeCoverage_Report_Node object graphs.
Tags
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
$nodes
protected
array<string|int, PHP_CodeCoverage_Report_Node>
$nodes
$position
protected
int
$position
Methods
__construct()
Constructor.
public
__construct(PHP_CodeCoverage_Report_Node_Directory $node) : mixed
Parameters
Return values
mixed —current()
Returns the current element.
public
current() : PHPUnit_Framework_Test
Return values
PHPUnit_Framework_Test —getChildren()
Returns the sub iterator for the current element.
public
getChildren() : PHP_CodeCoverage_Report_Node_Iterator
Return values
PHP_CodeCoverage_Report_Node_Iterator —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