Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 11 |
|
0.00% |
0 / 11 |
CRAP | |
0.00% |
0 / 1 |
CSSStyleDeclaration | |
0.00% |
0 / 11 |
|
0.00% |
0 / 11 |
132 | |
0.00% |
0 / 1 |
_unimplemented | n/a |
0 / 0 |
n/a |
0 / 0 |
0 | |||||
getCssText | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setCssText | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getLength | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
item | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getPropertyValue | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getPropertyPriority | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setProperty | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
removeProperty | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getParentRule | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getCssFloat | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setCssFloat | |
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\CSSRule; |
10 | |
11 | trait CSSStyleDeclaration { |
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 string |
26 | */ |
27 | public function getCssText(): string { |
28 | throw self::_unimplemented(); |
29 | } |
30 | |
31 | /** |
32 | * @param string $val |
33 | */ |
34 | public function setCssText( string $val ): void { |
35 | throw self::_unimplemented(); |
36 | } |
37 | |
38 | /** |
39 | * @return int |
40 | */ |
41 | public function getLength(): int { |
42 | throw self::_unimplemented(); |
43 | } |
44 | |
45 | /** |
46 | * @param int $index |
47 | * @return string |
48 | */ |
49 | public function item( int $index ): string { |
50 | throw self::_unimplemented(); |
51 | } |
52 | |
53 | /** |
54 | * @param string $property |
55 | * @return string |
56 | */ |
57 | public function getPropertyValue( string $property ): string { |
58 | throw self::_unimplemented(); |
59 | } |
60 | |
61 | /** |
62 | * @param string $property |
63 | * @return string |
64 | */ |
65 | public function getPropertyPriority( string $property ): string { |
66 | throw self::_unimplemented(); |
67 | } |
68 | |
69 | /** |
70 | * @param string $property |
71 | * @param ?string $value |
72 | * @param string $priority |
73 | * @return void |
74 | */ |
75 | public function setProperty( string $property, ?string $value = '', string $priority = '' ): void { |
76 | throw self::_unimplemented(); |
77 | } |
78 | |
79 | /** |
80 | * @param string $property |
81 | * @return string |
82 | */ |
83 | public function removeProperty( string $property ): string { |
84 | throw self::_unimplemented(); |
85 | } |
86 | |
87 | /** |
88 | * @return CSSRule|null |
89 | */ |
90 | public function getParentRule() { |
91 | throw self::_unimplemented(); |
92 | } |
93 | |
94 | /** |
95 | * @return string |
96 | */ |
97 | public function getCssFloat(): string { |
98 | throw self::_unimplemented(); |
99 | } |
100 | |
101 | /** |
102 | * @param ?string $val |
103 | */ |
104 | public function setCssFloat( ?string $val ): void { |
105 | throw self::_unimplemented(); |
106 | } |
107 | |
108 | } |