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