| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function __invoke($args = []) |
||
| 19 | { |
||
| 20 | /** @var BaseCommand $command */ |
||
| 21 | $command = $this->container->resolve($this->commands[$args['command']]); |
||
| 22 | |||
| 23 | return json_encode([ |
||
| 24 | 'name' => $command->getName(), |
||
| 25 | 'description' => $command->getDescription(), |
||
| 26 | 'help' => $command->getHelp(), |
||
| 27 | 'arguments' => $this->constructArguments($command), |
||
| 28 | 'options' => $this->constructOptions($command) |
||
| 29 | ]); |
||
| 32 |