CoverageEvent   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
eloc 8
c 0
b 0
f 0
dl 0
loc 42
rs 10
ccs 7
cts 7
cp 1

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
A getProcessor() 0 3 1
A getConsoleIO() 0 3 1
1
<?php
2
3
4
namespace Doyo\PhpSpec\CodeCoverage\Event;
5
6
7
use Doyo\Bridge\CodeCoverage\ProcessorInterface;
8
use Doyo\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 3
    public function __construct(
32
        ProcessorInterface $processor,
33
        ConsoleIO $consoleIO
34
    )
35
    {
36 3
        $this->processor = $processor;
37 3
        $this->consoleIO = $consoleIO;
38
    }
39
40
    /**
41
     * @return ProcessorInterface
42
     */
43 1
    public function getProcessor(): ProcessorInterface
44
    {
45 1
        return $this->processor;
46
    }
47
48
    /**
49
     * @return ConsoleIO
50
     */
51 1
    public function getConsoleIO(): ConsoleIO
52
    {
53 1
        return $this->consoleIO;
54
    }
55
}