Completed
Push — master ( 835840...ce2316 )
by Pablo
02:59
created

StrictCoverage   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 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 39
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getMinimumCoverage() 0 4 1
A getErrorMessage() 0 4 1
1
<?php
2
3
namespace PhpGitHooks\Module\PhpUnit\Contract\Command;
4
5
use Bruli\EventBusBundle\CommandBus\CommandInterface;
6
7
class StrictCoverage implements CommandInterface
8
{
9
    /**
10
     * @var float
11
     */
12
    private $minimumCoverage;
13
    /**
14
     * @var string
15
     */
16
    private $errorMessage;
17
18
    /**
19
     * StrictCoverageCommand constructor.
20
     *
21
     * @param float  $minimumCoverage
22
     * @param string $errorMessage
23
     */
24 4
    public function __construct($minimumCoverage, $errorMessage)
25
    {
26 4
        $this->minimumCoverage = $minimumCoverage;
27 4
        $this->errorMessage = $errorMessage;
28 4
    }
29
30
    /**
31
     * @return float
32
     */
33 2
    public function getMinimumCoverage()
34
    {
35 2
        return $this->minimumCoverage;
36
    }
37
38
    /**
39
     * @return string
40
     */
41 2
    public function getErrorMessage()
42
    {
43 2
        return $this->errorMessage;
44
    }
45
}
46