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