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