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