MediaWiki
master
IteratorDecorator.php
Go to the documentation of this file.
1
<?php
25
abstract
class
IteratorDecorator
implements
Iterator {
26
protected
$iterator
;
27
33
public
function
__construct
( Iterator
$iterator
) {
34
$this->iterator =
$iterator
;
35
}
36
41
public
function
current
() {
42
return
$this->iterator->current();
43
}
44
49
public
function
key
() {
50
return
$this->iterator->key();
51
}
52
57
public
function
next
() {
58
$this->iterator->next();
59
}
60
65
public
function
rewind
() {
66
$this->iterator->rewind();
67
}
68
73
public
function
valid
() {
74
return
$this->iterator->valid();
75
}
76
}
IteratorDecorator\current
current()
Stable to override
Definition:
IteratorDecorator.php:41
IteratorDecorator\valid
valid()
Stable to override
Definition:
IteratorDecorator.php:73
IteratorDecorator\next
next()
Stable to override
Definition:
IteratorDecorator.php:57
IteratorDecorator\rewind
rewind()
Stable to override
Definition:
IteratorDecorator.php:65
IteratorDecorator
Definition:
IteratorDecorator.php:25
IteratorDecorator\key
key()
Stable to override
Definition:
IteratorDecorator.php:49
IteratorDecorator\$iterator
$iterator
Definition:
IteratorDecorator.php:26
IteratorDecorator\__construct
__construct(Iterator $iterator)
Stable to call.
Definition:
IteratorDecorator.php:33
includes
libs
iterators
IteratorDecorator.php
Generated on Sun Jan 24 2021 15:08:43 for MediaWiki by
1.8.19