Total Complexity | 4 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class CommentEventSubscriber implements EventSubscriberInterface |
||
11 | { |
||
12 | public const COMMENT_BODY = 'test-event'; |
||
13 | public const NEW_COMMENT_BODY = 'new body'; |
||
14 | public static function getSubscribedEvents(): array |
||
15 | { |
||
16 | return [Events::postPersist]; |
||
17 | } |
||
18 | |||
19 | public function postPersist(LifecycleEventArgs $event): void |
||
30 | } |
||
31 | } |
||
32 |