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

GuardCoverage::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
3
namespace PhpGitHooks\Module\PhpUnit\Contract\Command;
4
5
use Bruli\EventBusBundle\CommandBus\CommandInterface;
6
7
class GuardCoverage implements CommandInterface
8
{
9
    /**
10
     * @var string
11
     */
12
    private $warningMessage;
13
14
    /**
15
     * GuardCoverageCommand constructor.
16
     *
17
     * @param string $warningMessage
18
     */
19 4
    public function __construct($warningMessage)
20
    {
21 4
        $this->warningMessage = $warningMessage;
22 4
    }
23
24
    /**
25
     * @return string
26
     */
27 2
    public function getWarningMessage()
28
    {
29 2
        return $this->warningMessage;
30
    }
31
}
32