Total Complexity | 4 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | class Result implements ResultInterface |
||
25 | { |
||
26 | /** |
||
27 | * Check status. |
||
28 | * |
||
29 | * @var bool |
||
30 | */ |
||
31 | protected $status; |
||
32 | /** |
||
33 | * Failure reason. |
||
34 | * |
||
35 | * @var string|null |
||
36 | */ |
||
37 | protected $reason; |
||
38 | /** |
||
39 | * Constructor |
||
40 | * |
||
41 | * @param bool $status Check status. |
||
42 | * @param string|null $reason Failure reason. |
||
43 | */ |
||
44 | 24 | public function __construct(bool $status, ?string $reason = null) |
|
49 | } |
||
50 | 24 | } |
|
51 | |||
52 | /** |
||
53 | * {@inheritDoc} |
||
54 | */ |
||
55 | 2 | public function getReason(): ?string |
|
58 | } |
||
59 | |||
60 | /** |
||
61 | * {@inheritDoc} |
||
62 | */ |
||
63 | 20 | public function getStatus(): bool |
|
68 |