Issues (83)

src/Runner/SkippedOutcome.php (1 issue)

Labels
Severity
1
<?php
2
3
declare(strict_types=1);
4
5
namespace hanneskod\readmetester\Runner;
6
7
use hanneskod\readmetester\Example\ExampleObj;
8
9
final class SkippedOutcome implements OutcomeInterface
10
{
11
    use OutcomeDefaultsTrait;
12
13
    public function __construct(
14
        private ExampleObj $example,
0 ignored issues
show
A parse error occurred: Syntax error, unexpected T_PRIVATE, expecting T_VARIABLE on line 14 at column 8
Loading history...
15
        private string $description,
16
    ) {}
17
18
    public function isSkipped(): bool
19
    {
20
        return true;
21
    }
22
23
    public function mustBeHandled(): bool
24
    {
25
        return false;
26
    }
27
28
    public function getContent(): string
29
    {
30
        return '';
31
    }
32
33
    public function getDescription(): string
34
    {
35
        return $this->description;
36
    }
37
}
38