Total Complexity | 4 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class CoversValidatorSymfony5 extends Application |
||
10 | { |
||
11 | const NAME = 'CoversValidator'; |
||
12 | const VERSION = '1.4.0'; |
||
13 | |||
14 | /** |
||
15 | * {@inheritdoc} |
||
16 | */ |
||
17 | public function __construct($name = self::NAME, $version = self::VERSION) |
||
18 | { |
||
19 | parent::__construct($name, $version); |
||
20 | } |
||
21 | |||
22 | /** |
||
23 | * {@inheritdoc} |
||
24 | */ |
||
25 | protected function getCommandName(InputInterface $input) |
||
26 | { |
||
27 | return 'validate'; |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * {@inheritdoc} |
||
32 | */ |
||
33 | protected function getDefaultCommands() |
||
34 | { |
||
35 | $defaultCommands = parent::getDefaultCommands(); |
||
36 | $defaultCommands[] = new ValidateCommand; |
||
37 | |||
38 | return $defaultCommands; |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * {@inheritdoc} |
||
43 | */ |
||
44 | public function getDefinition() |
||
50 | } |
||
51 | } |
||
52 |