| Total Complexity | 4 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| 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 | public function __construct(bool $status, ?string $reason = null) |
||
| 49 | } |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * {@inheritDoc} |
||
| 54 | */ |
||
| 55 | public function getReason(): ?string |
||
| 58 | } |
||
| 59 | |||
| 60 | /** |
||
| 61 | * {@inheritDoc} |
||
| 62 | */ |
||
| 63 | public function getStatus(): bool |
||
| 68 |