| Total Complexity | 1 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class BootloaderCommand extends AbstractCommand |
||
| 12 | { |
||
| 13 | protected const NAME = 'create:bootloader'; |
||
| 14 | protected const DESCRIPTION = 'Create bootloader declaration'; |
||
| 15 | protected const ARGUMENTS = [ |
||
| 16 | ['name', InputArgument::REQUIRED, 'bootloader name'], |
||
| 17 | ]; |
||
| 18 | protected const OPTIONS = [ |
||
| 19 | [ |
||
| 20 | 'comment', |
||
| 21 | 'c', |
||
| 22 | InputOption::VALUE_OPTIONAL, |
||
| 23 | 'Optional comment to add as class header', |
||
| 24 | ], |
||
| 25 | ]; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Create bootloader declaration. |
||
| 29 | */ |
||
| 30 | 1 | public function perform(): int |
|
| 39 |