| Total Complexity | 4 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class PostEventSubscriber implements EventSubscriberInterface |
||
| 11 | { |
||
| 12 | public const TITLE_VALUE = 'title value from event subscriber'; |
||
| 13 | public const NEW_TITLE_VALUE = 'new title value from event subscriber'; |
||
| 14 | |||
| 15 | public function getSubscribedEvents(): array |
||
| 16 | { |
||
| 17 | return [Events::prePersist]; |
||
| 18 | } |
||
| 19 | |||
| 20 | public function prePersist(LifecycleEventArgs $event): void |
||
| 30 | } |
||
| 31 | } |
||
| 32 |