| Total Complexity | 4 |
| Total Lines | 52 |
| Duplicated Lines | 0 % |
| Coverage | 91.3% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class PjbServerRevealCommand extends Command |
||
| 14 | { |
||
| 15 | use LoggerTrait; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var StandaloneServer |
||
| 19 | */ |
||
| 20 | protected $server; |
||
| 21 | |||
| 22 | /** |
||
| 23 | 7 | * {@inheritdoc} |
|
| 24 | */ |
||
| 25 | 7 | protected function configure(): void |
|
| 26 | 7 | { |
|
| 27 | $this->setName('pjbserver:reveal') |
||
| 28 | 7 | ->setDescription( |
|
| 29 | 7 | 'Print the underlying java cli command' |
|
| 30 | 7 | ) |
|
| 31 | 7 | ->addArgument( |
|
| 32 | 'config-file', |
||
| 33 | 7 | InputArgument::REQUIRED, |
|
| 34 | 'Configuration file, see ./dist/pjbserver.config.php.dist' |
||
| 35 | 7 | ) |
|
| 36 | |||
| 37 | ->setHelp( |
||
| 38 | 7 | <<<'EOT' |
|
| 39 | 7 | Echo the underlying cli command (call to java) that will be called. |
|
| 40 | EOT |
||
| 41 | 1 | ); |
|
| 42 | } |
||
| 43 | 1 | ||
| 44 | protected function execute(InputInterface $input, OutputInterface $output) |
||
| 65 | } |
||
| 66 | } |
||
| 67 |