1 | <?php |
||
13 | class ChildElementIterator extends ElementIterator |
||
14 | { |
||
15 | /** |
||
16 | * @var int |
||
17 | */ |
||
18 | private $stopDepth; |
||
19 | |||
20 | /** |
||
21 | * @var bool |
||
22 | */ |
||
23 | private $descendTree; |
||
24 | |||
25 | /** |
||
26 | * @var bool |
||
27 | */ |
||
28 | private $didRewind; |
||
|
|||
29 | |||
30 | /** |
||
31 | * @var int |
||
32 | */ |
||
33 | private $index; |
||
34 | |||
35 | /** |
||
36 | * @inheritdoc |
||
37 | * |
||
38 | * @param bool $descendantAxis traverse children of children |
||
39 | */ |
||
40 | 1 | public function __construct(XMLReader $reader, $name = null, bool $descendantAxis = false) |
|
46 | |||
47 | /** |
||
48 | * @throws UnexpectedValueException |
||
49 | * @return void |
||
50 | */ |
||
51 | 1 | public function rewind() |
|
70 | |||
71 | 1 | public function next() |
|
85 | |||
86 | 1 | public function valid() |
|
94 | |||
95 | /** |
||
96 | * @return Node |
||
97 | */ |
||
98 | 1 | public function current() |
|
104 | |||
105 | 1 | public function key() |
|
109 | } |
||
110 |