MediaWiki master
Wikimedia\Iterators\IteratorDecorator Class Reference

Allows extending classes to decorate an Iterator with reduced boilerplate. More...

Inherits Iterator.

Inherited by Wikimedia\Iterators\NotRecursiveIterator.

Collaboration diagram for Wikimedia\Iterators\IteratorDecorator:

Public Member Functions

 __construct (Iterator $iterator)
 current ()
 key ()
 next ()
 rewind ()
 valid ()

Protected Attributes

Iterator $iterator

Detailed Description

Allows extending classes to decorate an Iterator with reduced boilerplate.

Stability: stable
to extend

Definition at line 18 of file IteratorDecorator.php.

Constructor & Destructor Documentation

◆ __construct()

Wikimedia\Iterators\IteratorDecorator::__construct ( Iterator $iterator)
Stability: stable
to call
Parameters
Iterator$iterator

Definition at line 26 of file IteratorDecorator.php.

References $iterator.

Member Function Documentation

◆ current()

Wikimedia\Iterators\IteratorDecorator::current ( )

Stability: stable
to override

Definition at line 35 of file IteratorDecorator.php.

◆ key()

Wikimedia\Iterators\IteratorDecorator::key ( )

Stability: stable
to override

Definition at line 44 of file IteratorDecorator.php.

◆ next()

Wikimedia\Iterators\IteratorDecorator::next ( )

Stability: stable
to override

Definition at line 52 of file IteratorDecorator.php.

References next().

Referenced by next().

◆ rewind()

Wikimedia\Iterators\IteratorDecorator::rewind ( )

Stability: stable
to override

Definition at line 60 of file IteratorDecorator.php.

References rewind().

Referenced by rewind().

◆ valid()

Wikimedia\Iterators\IteratorDecorator::valid ( )

Stability: stable
to override

Definition at line 68 of file IteratorDecorator.php.

References return, and valid().

Referenced by valid().

Member Data Documentation

◆ $iterator

Iterator Wikimedia\Iterators\IteratorDecorator::$iterator
protected

Definition at line 19 of file IteratorDecorator.php.

Referenced by __construct().


The documentation for this class was generated from the following file: