Total Complexity | 5 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class AbstractEvent implements StoppableEventInterface, HasEventName |
||
10 | { |
||
11 | /** |
||
12 | * @var string |
||
13 | */ |
||
14 | private $name; |
||
15 | |||
16 | private $propagationStopped = false; |
||
17 | |||
18 | public function __construct(string $name) |
||
19 | { |
||
20 | $this->name = $name; |
||
21 | } |
||
22 | |||
23 | public function eventName(): string |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * Backwards compatibility method |
||
30 | * |
||
31 | * @deprecated use eventName instead |
||
32 | */ |
||
33 | public function getName(): string |
||
36 | } |
||
37 | |||
38 | public function isPropagationStopped(): bool |
||
41 | } |
||
42 | |||
43 | public function stopPropagation(): self |
||
48 | } |
||
49 | } |