Passed
Pull Request — develop (#5)
by ANTHONIUS
04:07
created

ReportEvent::getIO()   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 DoyoUserBundle 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 SebastianBergmann\CodeCoverage\CodeCoverage;
17
use Symfony\Component\Console\Style\StyleInterface;
18
use Symfony\Component\EventDispatcher\Event;
19
20
class ReportEvent extends Event
0 ignored issues
show
Deprecated Code introduced by
The class Symfony\Component\EventDispatcher\Event has been deprecated: since Symfony 4.3, use "Symfony\Contracts\EventDispatcher\Event" instead ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

20
class ReportEvent extends /** @scrutinizer ignore-deprecated */ Event
Loading history...
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 CodeCoverage|null
28
     */
29
    private $coverage;
30
31
    /**
32
     * @var StyleInterface|null
33
     */
34
    private $io;
35
36
    /**
37
     * @return CodeCoverage|null
38
     */
39 1
    public function getCoverage()
40
    {
41 1
        return $this->coverage;
42
    }
43
44
    /**
45
     * @param CodeCoverage $coverage
46
     */
47 1
    public function setCoverage(CodeCoverage $coverage)
48
    {
49 1
        $this->coverage = $coverage;
50
51 1
        return $this;
52
    }
53
54
    /**
55
     * @return StyleInterface|null
56
     */
57 1
    public function getIO()
58
    {
59 1
        return $this->io;
60
    }
61
62
    /**
63
     * @param StyleInterface|null $io
64
     *
65
     * @return ReportEvent
66
     */
67 1
    public function setIO(StyleInterface $io)
68
    {
69 1
        $this->io = $io;
70
71 1
        return $this;
72
    }
73
}
74