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