Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 8
0.00% covered (danger)
0.00%
0 / 8
CRAP
0.00% covered (danger)
0.00%
0 / 1
NodeIterator
0.00% covered (danger)
0.00%
0 / 8
0.00% covered (danger)
0.00%
0 / 8
72
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
 getReferenceNode
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getPointerBeforeReferenceNode
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
 nextNode
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
 detach
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 NodeIterator {
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 Node
34     */
35    public function getReferenceNode() {
36        throw self::_unimplemented();
37    }
38
39    /**
40     * @return bool
41     */
42    public function getPointerBeforeReferenceNode(): bool {
43        throw self::_unimplemented();
44    }
45
46    /**
47     * @return int
48     */
49    public function getWhatToShow(): int {
50        throw self::_unimplemented();
51    }
52
53    /**
54     * @return NodeFilter|callable|null
55     */
56    public function getFilter() {
57        throw self::_unimplemented();
58    }
59
60    /**
61     * @return Node|null
62     */
63    public function nextNode() {
64        throw self::_unimplemented();
65    }
66
67    /**
68     * @return Node|null
69     */
70    public function previousNode() {
71        throw self::_unimplemented();
72    }
73
74    /**
75     * @return void
76     */
77    public function detach(): void {
78        throw self::_unimplemented();
79    }
80
81}