| Total Complexity | 5 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class Setup extends Command |
||
| 12 | { |
||
| 13 | protected const NAME = 'abterphp:setup'; |
||
| 14 | |||
| 15 | protected const DESCRIPTION = 'Setup Abterphp'; |
||
| 16 | |||
| 17 | /** @var string[] */ |
||
| 18 | protected array $subCommands = [ |
||
| 19 | /** @see GenerateKeys::doExecute() */ |
||
| 20 | GenerateKeys::NAME, |
||
| 21 | ]; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @inheritdoc |
||
| 25 | */ |
||
| 26 | protected function define(): void |
||
| 27 | { |
||
| 28 | $this->setName(static::NAME) |
||
| 29 | ->setDescription(static::DESCRIPTION); |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param string $subCommand |
||
| 34 | */ |
||
| 35 | public function addSubCommand(string $subCommand): void |
||
| 36 | { |
||
| 37 | $this->subCommands[] = $subCommand; |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @inheritdoc |
||
| 42 | */ |
||
| 43 | protected function doExecute(IResponse $response): void |
||
| 51 | } |
||
| 52 | } |
||
| 53 | } |
||
| 55 |