Total Complexity | 3 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | class ServiceUnavailable extends AbstractException { |
||
6 | |||
7 | /** @var string|null */ |
||
8 | private $retryAfter; |
||
9 | |||
10 | 2 | public function __construct(string $request, string $detail, string $retryAfter = null) { |
|
21 | } |
||
22 | |||
23 | /** |
||
24 | * Returns the value of the given Retry-After header |
||
25 | * |
||
26 | * Retry-After: <http-date> |
||
27 | * Retry-After: <delay-seconds> |
||
28 | * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Retry-After |
||
29 | * |
||
30 | * @return string|null <http-date> or <delay-seconds> or null (when not given) |
||
31 | */ |
||
32 | 1 | public function getRetryAfter() : ?string { |
|
34 | } |
||
35 | } |