Completed
Push — develop ( 2faf16...be2583 )
by ANTHONIUS
15s queued 11s
created

ReportEvent   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getProcessor() 0 3 1
A getConsoleIO() 0 3 1
A __construct() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the doyo/behat-coverage-extension project.
5
 *
6
 * (c) Anthonius Munthi <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
declare(strict_types=1);
13
14
namespace Doyo\Behat\Coverage\Event;
15
16
use Doyo\Behat\Coverage\Bridge\CodeCoverage\ProcessorInterface;
17
use Doyo\Behat\Coverage\Bridge\Symfony\Event;
18
use Doyo\Behat\Coverage\Console\ConsoleIO;
19
20
class ReportEvent extends Event
21
{
22
    const BEFORE_PROCESS = 'doyo.coverage.report_pre';
23
    const PROCESS        = 'doyo.coverage.report_process';
24
    const AFTER_PROCESS  = 'doyo.coverage.report_post';
25
26
    /**
27
     * @var ProcessorInterface
28
     */
29
    private $processor;
30
31
    /**
32
     * @var ConsoleIO
33
     */
34
    private $consoleIO;
35
36
37 6
    public function __construct(ProcessorInterface $processor, ConsoleIO $consoleIO)
38
    {
39 6
        $this->processor = $processor;
40 6
        $this->consoleIO = $consoleIO;
41
    }
42
43
    /**
44
     * @return ProcessorInterface
45
     */
46 4
    public function getProcessor()
47
    {
48 4
        return $this->processor;
49
    }
50
51
    /**
52
     * @return ConsoleIO
53
     */
54 4
    public function getConsoleIO(): ConsoleIO
55
    {
56 4
        return $this->consoleIO;
57
    }
58
}
59