Lines
100.00%
2 / 2
Functions and Methods
100.00%
1 / 1
Classes and Traits
100.00%
1 / 1
| Name | Lines | Functions and Methods | CRAP | Classes and Traits | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| WaitError | 100.00% | 2 / 2 | 100.00% | 1 / 1 | 2 | 100.00% | 1 / 1 | |||
| messageTemplate | 100.00% | 2 / 2 | 100.00% | 1 / 1 | 2 | |||||
| 1 | <?php | |
| 2 | ||
| 3 | declare(strict_types=1); | |
| 4 | ||
| 5 | namespace Stewart\Contracts\Exception; | |
| 6 | ||
| 7 | enum WaitError: string implements ExceptionReason | |
| 8 | { | |
| 9 | case Abandoned = 'abandoned'; | |
| 10 | ||
| 11 | public function messageTemplate(): string | |
| 12 | { | |
| 13 | return match ($this) { | |
| 14 | self::Abandoned => 'The wait ended before an event arrived, because its stream completed or its app stopped.', | |
| 15 | }; | |
| 16 | } | |
| 17 | } |