Total Complexity | 4 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Coverage | 50% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class BeforeRun implements StoppableEventInterface |
||
13 | { |
||
14 | private Widget $widget; |
||
15 | private bool $stopPropagation = false; |
||
16 | |||
17 | 3 | public function __construct(Widget $widget) |
|
18 | { |
||
19 | 3 | $this->widget = $widget; |
|
20 | 3 | } |
|
21 | |||
22 | public function stopPropagation(): void |
||
25 | } |
||
26 | |||
27 | 3 | public function isPropagationStopped(): bool |
|
30 | } |
||
31 | |||
32 | public function getWidget(): Widget |
||
35 | } |
||
36 | } |
||
37 |