Passed
Push — remove_compat_layer ( 27dc5c...3c8467 )
by Doug
03:22
created

CodeCoverageController::configure()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 1
1
<?php
2
3
declare(strict_types=1);
4
/**
5
 * @author ek9 <[email protected]>
6
 *
7
 * @license BSD-2-Clause
8
 *
9
 * For the full copyright and license information, please see the LICENSE file
10
 * that was distributed with this source code.
11
 */
12
13
namespace DVDoug\Behat\CodeCoverage\Controller\Cli;
14
15
use Behat\Testwork\Cli\Controller;
16
use Symfony\Component\Console\Command\Command;
17
use Symfony\Component\Console\Input\InputInterface;
18
use Symfony\Component\Console\Input\InputOption;
19
use Symfony\Component\Console\Output\OutputInterface;
20
21
/**
22
 * Code Coverage Cli Controller.
23
 *
24
 * @author Danny Lewis
25
 */
26
class CodeCoverageController implements Controller
27
{
28
    /**
29
     * {@inheritdoc}
30
     */
31 4
    public function configure(Command $command): void
32
    {
33 4
        $command->addOption('no-coverage', null, InputOption::VALUE_NONE, 'Skip Code Coverage generation');
34 4
    }
35
36
    /**
37
     * {@inheritdoc}
38
     * @codeCoverageIgnore
39
     */
40
    public function execute(InputInterface $input, OutputInterface $output): void
41
    {
42
    }
43
}
44