Conditions | 3 |
Paths | 3 |
Total Lines | 20 |
Lines | 0 |
Ratio | 0 % |
Tests | 11 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
30 | 3 | public function execute(InputInterface $input, OutputInterface $output) |
|
31 | { |
||
32 | 3 | $io = new SymfonyStyle($input, $output); |
|
33 | |||
34 | 3 | $io->title('Tactician routing'); |
|
35 | |||
36 | 3 | $headers = ['Command', 'Handler Service']; |
|
37 | |||
38 | 3 | foreach ($this->mappings as $busId => $map) { |
|
39 | 3 | $io->section('Bus: ' . $busId); |
|
40 | |||
41 | 3 | if (count($map) > 0) { |
|
42 | 3 | $io->table($headers, $this->mappingToRows($map)); |
|
43 | } else { |
||
44 | 2 | $io->warning("No registered commands for bus $busId"); |
|
45 | } |
||
46 | } |
||
47 | 3 | ||
48 | return 0; |
||
49 | 3 | } |
|
50 | |||
61 |