Completed
Pull Request — master (#85)
by
unknown
08:04
created

PhpCsResponse::getIgnore()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 0
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
3
namespace PhpGitHooks\Module\Configuration\Contract\Response;
4
5
class PhpCsResponse
6
{
7
    /**
8
     * @var bool
9
     */
10
    private $phpCs;
11
    /**
12
     * @var null|string
13
     */
14
    private $phpCsStandard;
15
    /**
16
     * @var string
17
     */
18
    private $ignore;
19
20
    /**
21
     * PhpCsResponse constructor.
22 9
     *
23
     * @param bool        $phpCs
24 9
     * @param string|null $phpCsStandard
25 9
     */
26 9
    public function __construct($phpCs, $phpCsStandard, $ignore)
27
    {
28
        $this->phpCs = $phpCs;
29
        $this->phpCsStandard = $phpCsStandard;
30
        $this->ignore = $ignore;
31 2
    }
32
33 2
    /**
34
     * @return bool
35
     */
36
    public function isPhpCs()
37
    {
38
        return $this->phpCs;
39 2
    }
40
41 2
    /**
42
     * @return null|string
43
     */
44
    public function getPhpCsStandard()
45
    {
46
        return $this->phpCsStandard;
47
    }
48
49
    public function getIgnore()
50
    {
51
        return $this->ignore;
52
    }
53
}
54