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

PhpCsResponse   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 39
ccs 8
cts 8
cp 1
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A isPhpCs() 0 4 1
A getPhpCsStandard() 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
    /**
17
     * PhpCsResponse constructor.
18
     *
19
     * @param bool        $phpCs
20
     * @param string|null $phpCsStandard
21
     */
22 10
    public function __construct($phpCs, $phpCsStandard)
23
    {
24 10
        $this->phpCs = $phpCs;
25 10
        $this->phpCsStandard = $phpCsStandard;
26 10
    }
27
28
    /**
29
     * @return bool
30
     */
31 2
    public function isPhpCs()
32
    {
33 2
        return $this->phpCs;
34
    }
35
36
    /**
37
     * @return null|string
38
     */
39 2
    public function getPhpCsStandard()
40
    {
41 2
        return $this->phpCsStandard;
42
    }
43
}
44