| 1 | <?php |
||
| 14 | class RangeIterator implements Iterator |
||
| 15 | { |
||
| 16 | protected $start; |
||
| 17 | protected $end; |
||
| 18 | protected $step; |
||
| 19 | protected $currentValue; |
||
| 20 | protected $iterationCount; |
||
| 21 | |||
| 22 | public function __construct($start, $end = null, $step = 1) |
||
| 31 | |||
| 32 | public function rewind() |
||
| 37 | |||
| 38 | public function key() |
||
| 42 | |||
| 43 | public function current() |
||
| 47 | |||
| 48 | public function next() |
||
| 52 | |||
| 53 | public function valid() |
||
| 62 | } |
||
| 63 | |||
| 64 |