Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 23
0.00% covered (danger)
0.00%
0 / 23
CRAP
0.00% covered (danger)
0.00%
0 / 1
HTMLSelectElement
0.00% covered (danger)
0.00%
0 / 23
0.00% covered (danger)
0.00%
0 / 23
552
0.00% covered (danger)
0.00%
0 / 1
 _unimplemented
n/a
0 / 0
n/a
0 / 0
0
 getForm
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getSize
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setSize
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getType
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getOptions
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getLength
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setLength
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 item
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 namedItem
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 add
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setItem
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getSelectedOptions
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getSelectedIndex
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setSelectedIndex
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getValue
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setValue
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getWillValidate
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getValidity
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getValidationMessage
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 checkValidity
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 reportValidity
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setCustomValidity
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getLabels
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\HTMLElement;
12use Wikimedia\IDLeDOM\HTMLFormElement;
13use Wikimedia\IDLeDOM\HTMLOptGroupElement;
14use Wikimedia\IDLeDOM\HTMLOptionElement;
15use Wikimedia\IDLeDOM\HTMLOptionsCollection;
16use Wikimedia\IDLeDOM\NodeList;
17use Wikimedia\IDLeDOM\ValidityState;
18
19trait HTMLSelectElement {
20
21    // Underscore is used to avoid conflicts with DOM-reserved names
22    // phpcs:disable PSR2.Methods.MethodDeclaration.Underscore
23    // phpcs:disable MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName
24
25    /**
26     * @return Exception
27     */
28    abstract protected function _unimplemented(): Exception;
29
30    // phpcs:enable
31
32    /**
33     * @return HTMLFormElement|null
34     */
35    public function getForm() {
36        throw self::_unimplemented();
37    }
38
39    /**
40     * @return int
41     */
42    public function getSize(): int {
43        throw self::_unimplemented();
44    }
45
46    /**
47     * @param int $val
48     */
49    public function setSize( int $val ): void {
50        throw self::_unimplemented();
51    }
52
53    /**
54     * @return string
55     */
56    public function getType(): string {
57        throw self::_unimplemented();
58    }
59
60    /**
61     * @return HTMLOptionsCollection
62     */
63    public function getOptions() {
64        throw self::_unimplemented();
65    }
66
67    /**
68     * @return int
69     */
70    public function getLength(): int {
71        throw self::_unimplemented();
72    }
73
74    /**
75     * @param int $val
76     */
77    public function setLength( int $val ): void {
78        throw self::_unimplemented();
79    }
80
81    /**
82     * @param int $index
83     * @return Element|null
84     */
85    public function item( int $index ) {
86        throw self::_unimplemented();
87    }
88
89    /**
90     * @param string $name
91     * @return HTMLOptionElement|null
92     */
93    public function namedItem( string $name ) {
94        throw self::_unimplemented();
95    }
96
97    /**
98     * @param HTMLOptionElement|HTMLOptGroupElement $element
99     * @param HTMLElement|int|null $before
100     * @return void
101     */
102    public function add( /* mixed */ $element, /* ?mixed */ $before = null ): void {
103        throw self::_unimplemented();
104    }
105
106    /**
107     * @param int $index
108     * @param HTMLOptionElement|null $option
109     * @return void
110     */
111    public function setItem( int $index, /* ?HTMLOptionElement */ $option ): void {
112        throw self::_unimplemented();
113    }
114
115    /**
116     * @return HTMLCollection
117     */
118    public function getSelectedOptions() {
119        throw self::_unimplemented();
120    }
121
122    /**
123     * @return int
124     */
125    public function getSelectedIndex(): int {
126        throw self::_unimplemented();
127    }
128
129    /**
130     * @param int $val
131     */
132    public function setSelectedIndex( int $val ): void {
133        throw self::_unimplemented();
134    }
135
136    /**
137     * @return string
138     */
139    public function getValue(): string {
140        throw self::_unimplemented();
141    }
142
143    /**
144     * @param string $val
145     */
146    public function setValue( string $val ): void {
147        throw self::_unimplemented();
148    }
149
150    /**
151     * @return bool
152     */
153    public function getWillValidate(): bool {
154        throw self::_unimplemented();
155    }
156
157    /**
158     * @return ValidityState
159     */
160    public function getValidity() {
161        throw self::_unimplemented();
162    }
163
164    /**
165     * @return string
166     */
167    public function getValidationMessage(): string {
168        throw self::_unimplemented();
169    }
170
171    /**
172     * @return bool
173     */
174    public function checkValidity(): bool {
175        throw self::_unimplemented();
176    }
177
178    /**
179     * @return bool
180     */
181    public function reportValidity(): bool {
182        throw self::_unimplemented();
183    }
184
185    /**
186     * @param string $error
187     * @return void
188     */
189    public function setCustomValidity( string $error ): void {
190        throw self::_unimplemented();
191    }
192
193    /**
194     * @return NodeList
195     */
196    public function getLabels() {
197        throw self::_unimplemented();
198    }
199
200}