FrameTreeIterator
in package
implements
Iterator
Pre-order Iterator
Returns frames in preorder traversal order (parent then children)
Tags
Interfaces, Classes and Traits
- Iterator
Table of Contents
- $_num : int
- $_root : Frame
- $_stack : array<string|int, mixed>
- __construct() : mixed
- current() : Frame
- key() : int
- next() : Frame
- rewind() : mixed
- valid() : bool
Properties
$_num
protected
int
$_num
$_root
protected
Frame
$_root
$_stack
protected
array<string|int, mixed>
$_stack
= []
Methods
__construct()
public
__construct(Frame $root) : mixed
Parameters
- $root : Frame
Return values
mixed —current()
public
current() : Frame
Return values
Frame —key()
public
key() : int
Return values
int —next()
public
next() : Frame
Return values
Frame —rewind()
public
rewind() : mixed
Return values
mixed —valid()
public
valid() : bool