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

PhpCsFixerResponse::isPhpCsFixerPsr0()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 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