| Conditions | 3 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | 1 | #[\Override] |
|
| 26 | protected function execute(InputInterface $input, OutputInterface $output): int { |
||
| 27 | 1 | $fqcnList = $this->gatewayFactory->getFqcnList(); |
|
| 28 | 1 | foreach ($fqcnList as $fqcn) { |
|
| 29 | /** @var AGateway */ |
||
| 30 | 1 | $gateway = $this->gatewayFactory->get($fqcn); |
|
| 31 | 1 | $isConfigured = $gateway->isComplete(); |
|
| 32 | 1 | $settings = $gateway->getSettings(); |
|
| 33 | 1 | $output->writeln($settings->name . ': ' . ($isConfigured ? 'configured' : 'not configured')); |
|
| 34 | 1 | $output->write(json_encode($gateway->getConfiguration(), JSON_PRETTY_PRINT), true, OutputInterface::VERBOSITY_VERBOSE); |
|
| 35 | } |
||
| 36 | 1 | return 0; |
|
| 37 | } |
||
| 39 |