1 | <?php |
||
10 | class RecursiveGeneratorIterator implements \RecursiveIterator |
||
11 | { |
||
12 | /** @var \Generator */ |
||
13 | protected $generator; |
||
14 | |||
15 | /** |
||
16 | * @param \Generator $generator |
||
17 | */ |
||
18 | public function __construct(\Generator $generator) |
||
22 | |||
23 | /** |
||
24 | * @inheritdoc |
||
25 | */ |
||
26 | public function current() |
||
30 | |||
31 | /** |
||
32 | * @inheritdoc |
||
33 | */ |
||
34 | public function next() |
||
38 | |||
39 | /** |
||
40 | * @inheritdoc |
||
41 | */ |
||
42 | public function key() |
||
46 | |||
47 | /** |
||
48 | * @inheritdoc |
||
49 | */ |
||
50 | public function valid() |
||
54 | |||
55 | /** |
||
56 | * @inheritdoc |
||
57 | */ |
||
58 | public function rewind() |
||
62 | |||
63 | /** |
||
64 | * @inheritdoc |
||
65 | */ |
||
66 | public function hasChildren() |
||
70 | |||
71 | /** |
||
72 | * @inheritdoc |
||
73 | */ |
||
74 | public function getChildren() |
||
78 | } |
||
79 |