Passed
Push — master ( 3d4557...4c2a8d )
by Hannes
01:54
created

VoidOutcome   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 20
rs 10
wmc 4
1
<?php
2
3
// phpcs:disable Squiz.WhiteSpace.ScopeClosingBrace
4
5
declare(strict_types=1);
6
7
namespace hanneskod\readmetester\Runner;
8
9
use hanneskod\readmetester\Example\ExampleObj;
10
11
final class VoidOutcome implements OutcomeInterface
12
{
13
    use OutcomeDefaultsTrait;
14
15
    public function __construct(
16
        private ExampleObj $example,
0 ignored issues
show
Bug introduced by
A parse error occurred: Syntax error, unexpected T_PRIVATE, expecting T_VARIABLE on line 16 at column 8
Loading history...
17
    ) {}
18
19
    public function isVoid(): bool
20
    {
21
        return true;
22
    }
23
24
    public function mustBeHandled(): bool
25
    {
26
        return false;
27
    }
28
29
    public function getContent(): string
30
    {
31
        return '';
32
    }
33
34
    public function getDescription(): string
35
    {
36
        return 'void outcome';
37
    }
38
}
39