| Total Complexity | 5 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | final class SelfSchedulingCommandSubscriber implements EventSubscriberInterface |
||
| 15 | { |
||
| 16 | /** @var iterable<SelfSchedulingCommand> */ |
||
| 17 | private $commands; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @param iterable<SelfSchedulingCommand> $commands |
||
| 21 | 2 | */ |
|
| 22 | public function __construct(iterable $commands) |
||
| 23 | 2 | { |
|
| 24 | 2 | $this->commands = $commands; |
|
| 25 | } |
||
| 26 | 2 | ||
| 27 | public static function getSubscribedEvents(): array |
||
| 28 | 2 | { |
|
| 29 | return [BuildScheduleEvent::class => 'build']; |
||
| 30 | } |
||
| 31 | 2 | ||
| 32 | public function build(BuildScheduleEvent $event): void |
||
| 44 | 1 | } |
|
| 45 | } |
||
| 46 | } |
||
| 47 |