Debian Codegraph @

vendor/wikimedia/idle-dom/src/Stub/TreeWalker.php

raw
1 <?php
2
3 // AUTOMATICALLY GENERATED. DO NOT EDIT.
4 // Use `composer build` to regenerate.
5
6 namespace Wikimedia\IDLeDOM\Stub;
7
8 use Exception;
9 use Wikimedia\IDLeDOM\Node;
10 use Wikimedia\IDLeDOM\NodeFilter;
11
12 trait 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 }