Total Complexity | 2 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class BaseLineFileHelper |
||
14 | { |
||
15 | private const BASELINE_FILE = 'baseline-file'; |
||
16 | |||
17 | public static function configureBaseLineFileArgument(Command $command): void |
||
18 | { |
||
19 | $command->addArgument( |
||
20 | self::BASELINE_FILE, |
||
21 | InputArgument::REQUIRED, 'Baseline file' |
||
22 | ); |
||
23 | $command->addOption( |
||
24 | self::BASELINE_FILE, |
||
25 | null, |
||
26 | InputOption::VALUE_REQUIRED, |
||
27 | 'Path to the root of the project you are creating baseline for' |
||
28 | ); |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * @throws InvalidConfigException |
||
33 | */ |
||
34 | public static function getBaselineFile(InputInterface $input): BaseLineFileName |
||
37 | } |
||
38 | } |
||
39 |