Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 9
0.00% covered (danger)
0.00%
0 / 9
CRAP
0.00% covered (danger)
0.00%
0 / 1
ParentNode
0.00% covered (danger)
0.00%
0 / 9
0.00% covered (danger)
0.00%
0 / 9
90
0.00% covered (danger)
0.00%
0 / 1
 _unimplemented
n/a
0 / 0
n/a
0 / 0
0
 getChildren
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getFirstElementChild
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getLastElementChild
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getChildElementCount
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 prepend
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 append
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 replaceChildren
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 querySelector
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 querySelectorAll
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\Element;
10use Wikimedia\IDLeDOM\HTMLCollection;
11use Wikimedia\IDLeDOM\Node;
12use Wikimedia\IDLeDOM\NodeList;
13
14trait ParentNode {
15
16    // Underscore is used to avoid conflicts with DOM-reserved names
17    // phpcs:disable PSR2.Methods.MethodDeclaration.Underscore
18    // phpcs:disable MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName
19
20    /**
21     * @return Exception
22     */
23    abstract protected function _unimplemented(): Exception;
24
25    // phpcs:enable
26
27    /**
28     * @return HTMLCollection
29     */
30    public function getChildren() {
31        throw self::_unimplemented();
32    }
33
34    /**
35     * @return Element|null
36     */
37    public function getFirstElementChild() {
38        throw self::_unimplemented();
39    }
40
41    /**
42     * @return Element|null
43     */
44    public function getLastElementChild() {
45        throw self::_unimplemented();
46    }
47
48    /**
49     * @return int
50     */
51    public function getChildElementCount(): int {
52        throw self::_unimplemented();
53    }
54
55    /**
56     * @param Node|string ...$nodes
57     * @return void
58     */
59    public function prepend( /* mixed */ ...$nodes ): void {
60        throw self::_unimplemented();
61    }
62
63    /**
64     * @param Node|string ...$nodes
65     * @return void
66     */
67    public function append( /* mixed */ ...$nodes ): void {
68        throw self::_unimplemented();
69    }
70
71    /**
72     * @param Node|string ...$nodes
73     * @return void
74     */
75    public function replaceChildren( /* mixed */ ...$nodes ): void {
76        throw self::_unimplemented();
77    }
78
79    /**
80     * @param string $selectors
81     * @return Element|null
82     */
83    public function querySelector( string $selectors ) {
84        throw self::_unimplemented();
85    }
86
87    /**
88     * @param string $selectors
89     * @return NodeList
90     */
91    public function querySelectorAll( string $selectors ) {
92        throw self::_unimplemented();
93    }
94
95}