Lines
100.00%
3 / 3
Methods
100.00%
3 / 3
Classes
100.00%
1 / 1
| Name | Lines | Methods | CRAP | ||||
|---|---|---|---|---|---|---|---|
| __construct | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | ||
| restartAfter | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | ||
| quarantine | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | ||
| 9 | final readonly class RestartDecision | |
| 10 | { | |
| 11 | private function __construct(public ?Duration $delay) {} | |
| 12 | ||
| 13 | public static function restartAfter(Duration $delay): self | |
| 14 | { | |
| 15 | return new self($delay); | |
| 16 | } | |
| 17 | ||
| 18 | public static function quarantine(): self | |
| 19 | { | |
| 20 | return new self(null); | |
| 21 | } | |
| 22 | } |