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

PhpCsResponse   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 49
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 49
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A isPhpCs() 0 4 1
A getPhpCsStandard() 0 4 1
A getIgnore() 0 4 1
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