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

GuardCoverage   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 25
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getWarningMessage() 0 4 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