PhpCsFixerResponse   A
last analyzed

Complexity

Total Complexity 7

Size/Duplication

Total Lines 101
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 7
lcom 0
cbo 0
dl 0
loc 101
rs 10
c 0
b 0
f 0
ccs 20
cts 20
cp 1

7 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 15 1
A isPhpCsFixer() 0 4 1
A isPhpCsFixerPsr0() 0 4 1
A isPhpCsFixerPsr1() 0 4 1
A isPhpCsFixerPsr2() 0 4 1
A isPhpCsFixerSymfony() 0 4 1
A getPhpCsFixerOptions() 0 4 1
1
<?php
2
3
namespace PhpGitHooks\Module\Configuration\Contract\Response;
4
5
class PhpCsFixerResponse
6
{
7
    /**
8
     * @var bool
9
     */
10
    private $phpCsFixer;
11
    /**
12
     * @var bool
13
     */
14
    private $phpCsFixerPsr0;
15
    /**
16
     * @var bool
17
     */
18
    private $phpCsFixerPsr1;
19
    /**
20
     * @var bool
21
     */
22
    private $phpCsFixerPsr2;
23
    /**
24
     * @var bool
25
     */
26
    private $phpCsFixerSymfony;
27
    /**
28
     * @var string|null
29
     */
30
    private $phpCsFixerOptions;
31
32
    /**
33
     * PhpCsFixerResponse constructor.
34
     *
35
     * @param bool        $phpCsFixer
36
     * @param bool        $phpCsFixerPsr0
37
     * @param bool        $phpCsFixerPsr1
38
     * @param bool        $phpCsFixerPsr2
39
     * @param bool        $phpCsFixerSymfony
40
     * @param string|null $phpCsFixerOptions
41
     */
42 9
    public function __construct(
43
        $phpCsFixer,
44
        $phpCsFixerPsr0,
45
        $phpCsFixerPsr1,
46
        $phpCsFixerPsr2,
47
        $phpCsFixerSymfony,
48
        $phpCsFixerOptions
49
    ) {
50 9
        $this->phpCsFixer = $phpCsFixer;
51 9
        $this->phpCsFixerPsr0 = $phpCsFixerPsr0;
52 9
        $this->phpCsFixerPsr1 = $phpCsFixerPsr1;
53 9
        $this->phpCsFixerPsr2 = $phpCsFixerPsr2;
54 9
        $this->phpCsFixerSymfony = $phpCsFixerSymfony;
55 9
        $this->phpCsFixerOptions = $phpCsFixerOptions;
56 9
    }
57
58
    /**
59
     * @return bool
60
     */
61 2
    public function isPhpCsFixer()
62
    {
63 2
        return $this->phpCsFixer;
64
    }
65
66
    /**
67
     * @return bool
68
     */
69 4
    public function isPhpCsFixerPsr0()
70
    {
71 4
        return $this->phpCsFixerPsr0;
72
    }
73
74
    /**
75
     * @return bool
76
     */
77 4
    public function isPhpCsFixerPsr1()
78
    {
79 4
        return $this->phpCsFixerPsr1;
80
    }
81
82
    /**
83
     * @return bool
84
     */
85 4
    public function isPhpCsFixerPsr2()
86
    {
87 4
        return $this->phpCsFixerPsr2;
88
    }
89
90
    /**
91
     * @return bool
92
     */
93 4
    public function isPhpCsFixerSymfony()
94
    {
95 4
        return $this->phpCsFixerSymfony;
96
    }
97
98
    /**
99
     * @return null|string
100
     */
101 1
    public function getPhpCsFixerOptions()
102
    {
103 1
        return $this->phpCsFixerOptions;
104
    }
105
}
106