| Total Complexity | 2 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | abstract class Status |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | private $desc; |
||
| 16 | |||
| 17 | public function __construct(string $desc) |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Get a description of the represented status |
||
| 24 | */ |
||
| 25 | public function __tostring(): string |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Check if expectation validation was a success |
||
| 32 | */ |
||
| 33 | abstract public function isSuccess(): bool; |
||
| 34 | } |
||
| 35 |