Passed
Push — develop ( a4c97f...02f249 )
by ANTHONIUS
04:04
created

CoverageEvent::getConsoleIO()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 1
c 0
b 0
f 0
dl 0
loc 3
rs 10
ccs 0
cts 2
cp 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
4
namespace Doyo\PhpSpec\CodeCoverage\Event;
5
6
7
use Doyo\Behat\Coverage\Bridge\CodeCoverage\ProcessorInterface;
8
use Doyo\Behat\Coverage\Bridge\CodeCoverage\TestCase;
9
use Doyo\Symfony\Bridge\EventDispatcher\Event;
10
use PhpSpec\Console\ConsoleIO;
11
12
class CoverageEvent extends Event
13
{
14
    const REPORT = 'doyo.coverage.report';
15
16
    /**
17
     * @var ProcessorInterface
18
     */
19
    private $processor;
20
21
    /**
22
     * @var ConsoleIO
23
     */
24
    private $consoleIO;
25
26
    /**
27
     * CoverageEvent constructor.
28
     * @param ProcessorInterface $processor
29
     * @param ConsoleIO $consoleIO
30
     */
31 1
    public function __construct(
32
        ProcessorInterface $processor,
33
        ConsoleIO $consoleIO
34
    )
35
    {
36 1
        $this->processor = $processor;
37 1
        $this->consoleIO = $consoleIO;
38
    }
39
40
    /**
41
     * @return ProcessorInterface
42
     */
43
    public function getProcessor(): ProcessorInterface
44
    {
45
        return $this->processor;
46
    }
47
48
    /**
49
     * @return ConsoleIO
50
     */
51
    public function getConsoleIO(): ConsoleIO
52
    {
53
        return $this->consoleIO;
54
    }
55
56
    /**
57
     * @return TestCase|null
58
     */
59
    public function getTestCase()
60
    {
61
        return $this->testCase;
0 ignored issues
show
Bug Best Practice introduced by
The property testCase does not exist on Doyo\PhpSpec\CodeCoverage\Event\CoverageEvent. Did you maybe forget to declare it?
Loading history...
62
    }
63
}