PhpUnitResponse   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 53
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 53
rs 10
c 0
b 0
f 0
ccs 11
cts 11
cp 1

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A isPhpunit() 0 4 1
A isPhpunitRandomMode() 0 4 1
A getPhpunitOptions() 0 4 1
1
<?php
2
3
namespace PhpGitHooks\Module\Configuration\Contract\Response;
4
5
class PhpUnitResponse
6
{
7
    /**
8
     * @var bool
9
     */
10
    private $phpunit;
11
    /**
12
     * @var bool
13
     */
14
    private $phpunitRandomMode;
15
    /**
16
     * @var null|string
17
     */
18
    private $phpunitOptions;
19
20
    /**
21
     * PhpUnitResponse constructor.
22
     *
23
     * @param bool        $phpunit
24
     * @param bool        $phpunitRandomMode
25
     * @param string|null $phpunitOptions
26
     */
27 9
    public function __construct($phpunit, $phpunitRandomMode, $phpunitOptions)
28
    {
29 9
        $this->phpunit = $phpunit;
30 9
        $this->phpunitRandomMode = $phpunitRandomMode;
31 9
        $this->phpunitOptions = $phpunitOptions;
32 9
    }
33
34
    /**
35
     * @return bool
36
     */
37 3
    public function isPhpunit()
38
    {
39 3
        return $this->phpunit;
40
    }
41
42
    /**
43
     * @return bool
44
     */
45 3
    public function isPhpunitRandomMode()
46
    {
47 3
        return $this->phpunitRandomMode;
48
    }
49
50
    /**
51
     * @return null|string
52
     */
53 3
    public function getPhpunitOptions()
54
    {
55 3
        return $this->phpunitOptions;
56
    }
57
}
58