DocumentListIterator
in package
implements
Iterator
FinalYes
Table of Contents
Interfaces
- Iterator
Properties
- $currentDocument : WeakReference<string|int, DocumentNode>|null
- $innerIterator : Iterator<string|int, DocumentNode>
- $nextDocument : WeakReference<string|int, DocumentNode>|null
- $previousDocument : WeakReference<string|int, DocumentNode>|null
- $unseenDocuments : WeakMap<DocumentNode, bool>
Methods
- __construct() : mixed
- current() : mixed
- key() : mixed
- next() : void
- nextNode() : DocumentNode|null
- previousNode() : DocumentNode|null
- rewind() : void
- valid() : bool
- unseenIterator() : Generator<string|int, DocumentNode>
Properties
$currentDocument
private
WeakReference<string|int, DocumentNode>|null
$currentDocument
$innerIterator
private
Iterator<string|int, DocumentNode>
$innerIterator
$nextDocument
private
WeakReference<string|int, DocumentNode>|null
$nextDocument
= null
$previousDocument
private
WeakReference<string|int, DocumentNode>|null
$previousDocument
= null
$unseenDocuments
private
WeakMap<DocumentNode, bool>
$unseenDocuments
Methods
__construct()
public
__construct(DocumentTreeIterator $iterator, array<string|int, DocumentNode> $documents) : mixed
Parameters
- $iterator : DocumentTreeIterator
- $documents : array<string|int, DocumentNode>
current()
public
current() : mixed
key()
public
key() : mixed
next()
public
next() : void
nextNode()
public
nextNode() : DocumentNode|null
Return values
DocumentNode|nullpreviousNode()
public
previousNode() : DocumentNode|null
Return values
DocumentNode|nullrewind()
public
rewind() : void
valid()
public
valid() : bool
Return values
boolunseenIterator()
private
unseenIterator() : Generator<string|int, DocumentNode>