Test Failed
Push — master ( 57b7d4...e042c7 )
by Hannes
02:15
created

VoidOutcome   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 20
rs 10
c 0
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __tostring() 0 3 1
A getContent() 0 3 1
A mustBeHandled() 0 3 1
A getType() 0 3 1
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace hanneskod\readmetester\Runner;
6
7
/**
8
 * Empty outcome
9
 */
10
class VoidOutcome implements OutcomeInterface
11
{
12
    public function getType(): string
13
    {
14
        return self::TYPE_VOID;
15
    }
16
17
    public function mustBeHandled(): bool
18
    {
19
        return false;
20
    }
21
22
    public function getContent(): string
23
    {
24
        return '';
25
    }
26
27
    public function __tostring(): string
28
    {
29
        return 'void outcome';
30
    }
31
}
32