Completed
Pull Request — master (#85)
by
unknown
02:27
created

PhpCsResponse   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 53
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 53
ccs 0
cts 11
cp 0
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
     *
23
     * @param bool        $phpCs
24
     * @param string|null $phpCsStandard
25
     * @param string      $ignore
26
     */
27
    public function __construct($phpCs, $phpCsStandard, $ignore)
28
    {
29
        $this->phpCs = $phpCs;
30
        $this->phpCsStandard = $phpCsStandard;
31
        $this->ignore = $ignore;
32
    }
33
34
    /**
35
     * @return bool
36
     */
37
    public function isPhpCs()
38
    {
39
        return $this->phpCs;
40
    }
41
42
    /**
43
     * @return null|string
44
     */
45
    public function getPhpCsStandard()
46
    {
47
        return $this->phpCsStandard;
48
    }
49
50
    /**
51
     * @return string
52
     */
53
    public function getIgnore()
54
    {
55
        return $this->ignore;
56
    }
57
}
58