| Total Complexity | 2 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 31 | class ConfigExampleCommand extends Command |
||
| 32 | { |
||
| 33 | /** |
||
| 34 | * Set the command shortcut to be used in configuration |
||
| 35 | * |
||
| 36 | * @var string |
||
| 37 | */ |
||
| 38 | protected $command = 'config:example'; |
||
| 39 | |||
| 40 | protected function configure(): void |
||
| 41 | { |
||
| 42 | 28 | // First command : Test the DB Connexion |
|
| 43 | $this->setName($this->command) |
||
| 44 | ->setDescription( |
||
| 45 | 28 | 'Generate an example configuration for the Anonymizer' |
|
| 46 | 28 | )->setHelp( |
|
| 47 | 28 | 'This command will take all default values from the config validation' . PHP_EOL . |
|
| 48 | 28 | "Usage: neuralyzer <info>{$this->command}</info>" |
|
| 49 | 28 | ); |
|
| 50 | 28 | } |
|
| 51 | |||
| 52 | 28 | protected function execute(InputInterface $input, OutputInterface $output): int |
|
| 62 | 1 | } |
|
| 63 | } |
||
| 64 |