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