| 1 | <?php |
||
| 10 | class CallbackIterator implements \Iterator |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var callable |
||
| 14 | */ |
||
| 15 | protected $current; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var callable |
||
| 19 | */ |
||
| 20 | protected $next; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var callable |
||
| 24 | */ |
||
| 25 | protected $key; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var callable |
||
| 29 | */ |
||
| 30 | protected $valid; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @var callable |
||
| 34 | */ |
||
| 35 | protected $rewind; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @param callable $current |
||
| 39 | * @param callable $next |
||
| 40 | * @param callable $key |
||
| 41 | * @param callable $valid |
||
| 42 | * @param callable $rewind |
||
| 43 | */ |
||
| 44 | 1 | public function __construct( |
|
| 57 | |||
| 58 | /** |
||
| 59 | * {@inheritdoc} |
||
| 60 | */ |
||
| 61 | 1 | public function current() |
|
| 65 | |||
| 66 | /** |
||
| 67 | * {@inheritdoc} |
||
| 68 | */ |
||
| 69 | 1 | public function next() |
|
| 73 | |||
| 74 | /** |
||
| 75 | * {@inheritdoc} |
||
| 76 | */ |
||
| 77 | 1 | public function key() |
|
| 81 | |||
| 82 | /** |
||
| 83 | * {@inheritdoc} |
||
| 84 | */ |
||
| 85 | 1 | public function valid() |
|
| 89 | |||
| 90 | /** |
||
| 91 | * {@inheritdoc} |
||
| 92 | */ |
||
| 93 | 1 | public function rewind() |
|
| 97 | } |
||
| 98 |