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

ReportEvent::getConsoleIO()   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
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
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