| Total Complexity | 1 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | #[AsCommand(name: 'create:config', description: 'Create config declaration')] |
||
| 14 | class ConfigCommand extends AbstractCommand |
||
| 15 | { |
||
| 16 | #[Argument(description: 'Сonfig name, or a config filename if "-r" flag is set ({path/to/configs/directory/}{config/filename}.php)')] |
||
| 17 | #[Question(question: 'Please provide the name of the Config class, or the filename of an existing config file')] |
||
| 18 | private string $name; |
||
| 19 | |||
| 20 | #[Option(shortcut: 'r', description: 'Create config class based on a given config filename')] |
||
| 21 | private bool $reverse = false; |
||
| 22 | |||
| 23 | #[Option(shortcut: 'c', description: 'Optional comment to add as class header')] |
||
| 24 | private ?string $comment = null; |
||
|
|
|||
| 25 | |||
| 26 | #[Option(description: 'Optional, specify a custom namespace')] |
||
| 27 | private ?string $namespace = null; |
||
| 28 | |||
| 29 | 7 | public function perform(): int |
|
| 39 |