| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | 15 | public static function withError(string $errorCode, string $publicMessage, ?Throwable $prev = null): self |
|
| 31 | { |
||
| 32 | 15 | return new self( |
|
| 33 | 15 | $errorCode, |
|
| 34 | 15 | $publicMessage, |
|
| 35 | 15 | sprintf('Authentication verification failed with the public message "%s"', $publicMessage), |
|
| 36 | 15 | 0, |
|
| 37 | 15 | $prev |
|
| 38 | ); |
||
| 51 |