PhpUnitStrictCoverageResponse   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A isPhpunitStrictCoverage() 0 4 1
A getMinimum() 0 4 1
1
<?php
2
3
namespace PhpGitHooks\Module\Configuration\Contract\Response;
4
5
class PhpUnitStrictCoverageResponse
6
{
7
    /**
8
     * @var bool
9
     */
10
    private $phpunitStrictCoverage;
11
    /**
12
     * @var float
13
     */
14
    private $minimum;
15
16
    /**
17
     * PhpUnitStrictCoverageResponse constructor.
18
     *
19
     * @param bool  $phpunitStrictCoverage
20
     * @param float $minimum
21
     */
22 9
    public function __construct($phpunitStrictCoverage, $minimum)
23
    {
24 9
        $this->phpunitStrictCoverage = $phpunitStrictCoverage;
25 9
        $this->minimum = $minimum;
26 9
    }
27
28
    /**
29
     * @return bool
30
     */
31 2
    public function isPhpunitStrictCoverage()
32
    {
33 2
        return $this->phpunitStrictCoverage;
34
    }
35
36
    /**
37
     * @return float
38
     */
39 2
    public function getMinimum()
40
    {
41 2
        return $this->minimum;
42
    }
43
}
44