Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 12
0.00% covered (danger)
0.00%
0 / 12
CRAP
0.00% covered (danger)
0.00%
0 / 1
TreeWalker
0.00% covered (danger)
0.00%
0 / 12
0.00% covered (danger)
0.00%
0 / 12
156
0.00% covered (danger)
0.00%
0 / 1
 _unimplemented
n/a
0 / 0
n/a
0 / 0
0
 getRoot
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getWhatToShow
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getFilter
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getCurrentNode
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setCurrentNode
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 parentNode
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 firstChild
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 lastChild
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 previousSibling
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 nextSibling
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 previousNode
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 nextNode
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3// AUTOMATICALLY GENERATED.  DO NOT EDIT.
4// Use `composer build` to regenerate.
5
6namespace Wikimedia\IDLeDOM\Stub;
7
8use Exception;
9use Wikimedia\IDLeDOM\Node;
10use Wikimedia\IDLeDOM\NodeFilter;
11
12trait TreeWalker {
13
14    // Underscore is used to avoid conflicts with DOM-reserved names
15    // phpcs:disable PSR2.Methods.MethodDeclaration.Underscore
16    // phpcs:disable MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName
17
18    /**
19     * @return Exception
20     */
21    abstract protected function _unimplemented(): Exception;
22
23    // phpcs:enable
24
25    /**
26     * @return Node
27     */
28    public function getRoot() {
29        throw self::_unimplemented();
30    }
31
32    /**
33     * @return int
34     */
35    public function getWhatToShow(): int {
36        throw self::_unimplemented();
37    }
38
39    /**
40     * @return NodeFilter|callable|null
41     */
42    public function getFilter() {
43        throw self::_unimplemented();
44    }
45
46    /**
47     * @return Node
48     */
49    public function getCurrentNode() {
50        throw self::_unimplemented();
51    }
52
53    /**
54     * @param Node $val
55     */
56    public function setCurrentNode( /* Node */ $val ): void {
57        throw self::_unimplemented();
58    }
59
60    /**
61     * @return Node|null
62     */
63    public function parentNode() {
64        throw self::_unimplemented();
65    }
66
67    /**
68     * @return Node|null
69     */
70    public function firstChild() {
71        throw self::_unimplemented();
72    }
73
74    /**
75     * @return Node|null
76     */
77    public function lastChild() {
78        throw self::_unimplemented();
79    }
80
81    /**
82     * @return Node|null
83     */
84    public function previousSibling() {
85        throw self::_unimplemented();
86    }
87
88    /**
89     * @return Node|null
90     */
91    public function nextSibling() {
92        throw self::_unimplemented();
93    }
94
95    /**
96     * @return Node|null
97     */
98    public function previousNode() {
99        throw self::_unimplemented();
100    }
101
102    /**
103     * @return Node|null
104     */
105    public function nextNode() {
106        throw self::_unimplemented();
107    }
108
109}