Completed
Push — master ( 30874d...ed8031 )
by Pablo
02:56
created

PhpCsFixerResponse   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 86
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 6
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 86
ccs 17
cts 17
cp 1
rs 10

6 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 13 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
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
    /**
29
     * PhpCsFixerResponse constructor.
30
     *
31
     * @param bool $phpCsFixer
32
     * @param bool $phpCsFixerPsr0
33
     * @param bool $phpCsFixerPsr1
34
     * @param bool $phpCsFixerPsr2
35
     * @param bool $phpCsFixerSymfony
36
     */
37 10
    public function __construct(
38
        $phpCsFixer,
39
        $phpCsFixerPsr0,
40
        $phpCsFixerPsr1,
41
        $phpCsFixerPsr2,
42
        $phpCsFixerSymfony
43
    ) {
44 10
        $this->phpCsFixer = $phpCsFixer;
45 10
        $this->phpCsFixerPsr0 = $phpCsFixerPsr0;
46 10
        $this->phpCsFixerPsr1 = $phpCsFixerPsr1;
47 10
        $this->phpCsFixerPsr2 = $phpCsFixerPsr2;
48 10
        $this->phpCsFixerSymfony = $phpCsFixerSymfony;
49 10
    }
50
51
    /**
52
     * @return bool
53
     */
54 2
    public function isPhpCsFixer()
55
    {
56 2
        return $this->phpCsFixer;
57
    }
58
59
    /**
60
     * @return bool
61
     */
62 5
    public function isPhpCsFixerPsr0()
63
    {
64 5
        return $this->phpCsFixerPsr0;
65
    }
66
67
    /**
68
     * @return bool
69
     */
70 5
    public function isPhpCsFixerPsr1()
71
    {
72 5
        return $this->phpCsFixerPsr1;
73
    }
74
75
    /**
76
     * @return bool
77
     */
78 5
    public function isPhpCsFixerPsr2()
79
    {
80 5
        return $this->phpCsFixerPsr2;
81
    }
82
83
    /**
84
     * @return bool
85
     */
86 5
    public function isPhpCsFixerSymfony()
87
    {
88 5
        return $this->phpCsFixerSymfony;
89
    }
90
}
91