Total Complexity | 3 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | final class ReactionObserver |
||
22 | { |
||
23 | private DispatcherInterface $eventDispatcher; |
||
24 | |||
25 | public function __construct( |
||
29 | } |
||
30 | |||
31 | public function created( |
||
32 | Reaction $reaction, |
||
33 | ): void { |
||
34 | $this->eventDispatcher->dispatch( |
||
35 | new ReactionHasBeenAdded($reaction), |
||
36 | ); |
||
37 | } |
||
38 | |||
39 | public function deleted( |
||
44 | ); |
||
45 | } |
||
47 |