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

StrictCoverage::getMinimumCoverage()   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 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 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