| Total Complexity | 4 |
| Total Lines | 21 |
| 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 | |||
| 15 | public function getSubscribedEvents(): array |
||
| 16 | { |
||
| 17 | return [Events::postPersist]; |
||
| 18 | } |
||
| 19 | |||
| 20 | public function postPersist(LifecycleEventArgs $event): void |
||
| 31 | } |
||
| 32 | } |
||
| 33 |