Passed
Push — master ( 697711...2a2aa0 )
by Julien
13:09 queued 09:15
created

WithMessage   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 6
c 1
b 0
f 0
dl 0
loc 17
ccs 6
cts 6
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A withMessage() 0 4 1
A resetMessage() 0 4 1
1
<?php declare(strict_types=1);
2
3
4
namespace Pitchart\Phlunit\Checks\Mixin;
5
6
trait WithMessage
7
{
8
    /**
9
     * @var string
10
     */
11
    protected $message = '';
12
13 44
    public function withMessage(string $message): self
14
    {
15 44
        $this->message = $message;
16 44
        return $this;
17
    }
18
19 188
    protected function resetMessage(): self
20
    {
21 188
        $this->message = '';
22 188
        return $this;
23
    }
24
}
25