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