Total Complexity | 5 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | final class ErrorOutcome implements OutcomeInterface |
||
10 | { |
||
11 | use OutcomeDefaultsTrait; |
||
12 | |||
13 | public function __construct( |
||
14 | private ExampleObj $example, |
||
15 | private string $content, |
||
16 | ) {} |
||
17 | |||
18 | public function isError(): bool |
||
19 | { |
||
20 | return true; |
||
21 | } |
||
22 | |||
23 | public function mustBeHandled(): bool |
||
24 | { |
||
25 | return true; |
||
26 | } |
||
27 | |||
28 | public function getContent(): string |
||
29 | { |
||
30 | return $this->content; |
||
31 | } |
||
32 | |||
33 | public function getDescription(): string |
||
36 | } |
||
37 | } |
||
38 |