Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | public function __construct(string $request, string $detail, string $retryAfter = null) { |
||
10 | 2 | ||
11 | $message = "Invalid response received for request (" . $request . "): service unavailable - " . $detail; |
||
12 | 2 | ||
13 | if($retryAfter !== null) { |
||
14 | 2 | $message .= ' - may retry after: ' . $retryAfter; |
|
15 | 1 | } |
|
16 | |||
17 | parent::__construct($message); |
||
18 | 2 | ||
19 | $this->retryAfter = $retryAfter; |
||
20 | 2 | } |
|
34 | } |