Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 20
0.00% covered (danger)
0.00%
0 / 20
CRAP
0.00% covered (danger)
0.00%
0 / 1
Event
0.00% covered (danger)
0.00%
0 / 20
0.00% covered (danger)
0.00%
0 / 20
420
0.00% covered (danger)
0.00%
0 / 1
 _unimplemented
n/a
0 / 0
n/a
0 / 0
0
 getType
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getTarget
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getSrcElement
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getCurrentTarget
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 composedPath
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getEventPhase
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 stopPropagation
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getCancelBubble
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setCancelBubble
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 stopImmediatePropagation
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getBubbles
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getCancelable
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getReturnValue
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setReturnValue
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 preventDefault
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getDefaultPrevented
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getComposed
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getIsTrusted
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getTimeStamp
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 initEvent
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\EventTarget;
10
11trait Event {
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 getType(): string {
28        throw self::_unimplemented();
29    }
30
31    /**
32     * @return EventTarget|null
33     */
34    public function getTarget() {
35        throw self::_unimplemented();
36    }
37
38    /**
39     * @return EventTarget|null
40     */
41    public function getSrcElement() {
42        throw self::_unimplemented();
43    }
44
45    /**
46     * @return EventTarget|null
47     */
48    public function getCurrentTarget() {
49        throw self::_unimplemented();
50    }
51
52    /**
53     * @return list<EventTarget>
54     */
55    public function composedPath(): array {
56        throw self::_unimplemented();
57    }
58
59    /**
60     * @return int
61     */
62    public function getEventPhase(): int {
63        throw self::_unimplemented();
64    }
65
66    /**
67     * @return void
68     */
69    public function stopPropagation(): void {
70        throw self::_unimplemented();
71    }
72
73    /**
74     * @return bool
75     */
76    public function getCancelBubble(): bool {
77        throw self::_unimplemented();
78    }
79
80    /**
81     * @param bool $val
82     */
83    public function setCancelBubble( bool $val ): void {
84        throw self::_unimplemented();
85    }
86
87    /**
88     * @return void
89     */
90    public function stopImmediatePropagation(): void {
91        throw self::_unimplemented();
92    }
93
94    /**
95     * @return bool
96     */
97    public function getBubbles(): bool {
98        throw self::_unimplemented();
99    }
100
101    /**
102     * @return bool
103     */
104    public function getCancelable(): bool {
105        throw self::_unimplemented();
106    }
107
108    /**
109     * @return bool
110     */
111    public function getReturnValue(): bool {
112        throw self::_unimplemented();
113    }
114
115    /**
116     * @param bool $val
117     */
118    public function setReturnValue( bool $val ): void {
119        throw self::_unimplemented();
120    }
121
122    /**
123     * @return void
124     */
125    public function preventDefault(): void {
126        throw self::_unimplemented();
127    }
128
129    /**
130     * @return bool
131     */
132    public function getDefaultPrevented(): bool {
133        throw self::_unimplemented();
134    }
135
136    /**
137     * @return bool
138     */
139    public function getComposed(): bool {
140        throw self::_unimplemented();
141    }
142
143    /**
144     * @return bool
145     */
146    public function getIsTrusted(): bool {
147        throw self::_unimplemented();
148    }
149
150    /**
151     * @return float
152     */
153    public function getTimeStamp(): float {
154        throw self::_unimplemented();
155    }
156
157    /**
158     * @param string $type
159     * @param bool $bubbles
160     * @param bool $cancelable
161     * @return void
162     */
163    public function initEvent( string $type, bool $bubbles = false, bool $cancelable = false ): void {
164        throw self::_unimplemented();
165    }
166
167}