Total Complexity | 4 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class ValidateCommand extends Command |
||
14 | { |
||
15 | public const NAME = 'validate'; |
||
16 | public const DESCRIPTION = 'Validates dandelion.json.'; |
||
17 | /** |
||
18 | * @var \Dandelion\Configuration\ConfigurationValidatorInterface |
||
19 | */ |
||
20 | protected $configurationValidator; |
||
21 | |||
22 | public function __construct(ConfigurationValidatorInterface $configurationValidator) |
||
23 | { |
||
24 | parent::__construct(); |
||
25 | $this->configurationValidator = $configurationValidator; |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * @return void |
||
30 | */ |
||
31 | protected function configure(): void |
||
32 | { |
||
33 | parent::configure(); |
||
34 | |||
35 | $this->setName(static::NAME); |
||
36 | $this->setDescription(static::DESCRIPTION); |
||
37 | } |
||
38 | |||
39 | |||
40 | /** |
||
41 | * @param \Symfony\Component\Console\Input\InputInterface $input |
||
42 | * @param \Symfony\Component\Console\Output\OutputInterface $output |
||
43 | * |
||
44 | * @return int |
||
45 | */ |
||
46 | protected function execute(InputInterface $input, OutputInterface $output): int |
||
58 | } |
||
59 | } |
||
60 |