MediaWiki REL1_31
IteratorDecorator.php
Go to the documentation of this file.
1<?php
24abstract class IteratorDecorator implements Iterator {
25 protected $iterator;
26
27 public function __construct( Iterator $iterator ) {
28 $this->iterator = $iterator;
29 }
30
31 public function current() {
32 return $this->iterator->current();
33 }
34
35 public function key() {
36 return $this->iterator->key();
37 }
38
39 public function next() {
40 $this->iterator->next();
41 }
42
43 public function rewind() {
44 $this->iterator->rewind();
45 }
46
47 public function valid() {
48 return $this->iterator->valid();
49 }
50}
__construct(Iterator $iterator)