Total Complexity | 3 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | final class UpdatePlayerSerieBadgeSubscriber implements EventSubscriberInterface |
||
10 | { |
||
11 | private PlayerSerieBadgeHandler $badgeHandler; |
||
12 | |||
13 | public function __construct(PlayerSerieBadgeHandler $badgeHandler) |
||
14 | { |
||
15 | $this->badgeHandler = $badgeHandler; |
||
16 | } |
||
17 | |||
18 | public static function getSubscribedEvents(): array |
||
19 | { |
||
20 | return [ |
||
21 | VideoGamesRecordsCoreEvents::SERIE_MAJ_COMPLETED => 'process', |
||
22 | ]; |
||
23 | } |
||
24 | |||
25 | /** |
||
26 | * @param SerieEvent $event |
||
27 | */ |
||
28 | public function process(SerieEvent $event) |
||
32 | } |
||
33 | } |
||
34 |