Total Complexity | 4 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
12 | final class ScheduleExtensionSubscriber implements EventSubscriberInterface |
||
13 | { |
||
14 | private $extensions; |
||
15 | |||
16 | /** |
||
17 | * @param Extension[] $extensions |
||
18 | */ |
||
19 | 1 | public function __construct(iterable $extensions) |
|
20 | { |
||
21 | 1 | $this->extensions = $extensions; |
|
22 | 1 | } |
|
23 | |||
24 | 1 | public static function getSubscribedEvents(): array |
|
25 | { |
||
26 | 1 | return [BuildScheduleEvent::class => 'addExtensions']; |
|
27 | } |
||
28 | |||
29 | 1 | public function addExtensions(BuildScheduleEvent $event): void |
|
33 | } |
||
34 | 1 | } |
|
35 | } |
||
36 |