Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 3 |
|
0.00% |
0 / 3 |
CRAP | |
0.00% |
0 / 1 |
MutationObserver | |
0.00% |
0 / 3 |
|
0.00% |
0 / 3 |
12 | |
0.00% |
0 / 1 |
_unimplemented | n/a |
0 / 0 |
n/a |
0 / 0 |
0 | |||||
observe | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
disconnect | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
takeRecords | |
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\MutationObserverInit; |
10 | use Wikimedia\IDLeDOM\MutationRecord; |
11 | use Wikimedia\IDLeDOM\Node; |
12 | |
13 | trait MutationObserver { |
14 | |
15 | // Underscore is used to avoid conflicts with DOM-reserved names |
16 | // phpcs:disable PSR2.Methods.MethodDeclaration.Underscore |
17 | // phpcs:disable MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName |
18 | |
19 | /** |
20 | * @return Exception |
21 | */ |
22 | abstract protected function _unimplemented(): Exception; |
23 | |
24 | // phpcs:enable |
25 | |
26 | /** |
27 | * @param Node $target |
28 | * @param MutationObserverInit|associative-array|null $options |
29 | * @return void |
30 | */ |
31 | public function observe( /* Node */ $target, /* ?mixed */ $options = null ): void { |
32 | throw self::_unimplemented(); |
33 | } |
34 | |
35 | /** |
36 | * @return void |
37 | */ |
38 | public function disconnect(): void { |
39 | throw self::_unimplemented(); |
40 | } |
41 | |
42 | /** |
43 | * @return list<MutationRecord> |
44 | */ |
45 | public function takeRecords(): array { |
46 | throw self::_unimplemented(); |
47 | } |
48 | |
49 | } |