| 1 | <?php |
||
| 11 | class DumpIterator implements Iterator { |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @var DumpReader |
||
| 15 | */ |
||
| 16 | private $reader; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var Page|null |
||
| 20 | */ |
||
| 21 | private $current; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var int |
||
| 25 | */ |
||
| 26 | private $key = 0; |
||
| 27 | |||
| 28 | public function __construct( DumpReader $reader ) { |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @return Page|null |
||
| 34 | */ |
||
| 35 | public function current() { |
||
| 38 | |||
| 39 | public function next() { |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @return int |
||
| 46 | */ |
||
| 47 | public function key() { |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @return bool |
||
| 53 | */ |
||
| 54 | public function valid() { |
||
| 57 | |||
| 58 | public function rewind() { |
||
| 62 | |||
| 63 | } |
||
| 64 |