Lines 0.00% 0 / 3
Methods 0.00% 0 / 1
Classes 0.00% 0 / 1
Name Lines Methods CRAP
 describeForWorker 0.00% 0 / 3 0.00% 0 / 1 12
9enum WorkerRestartOutcome
10{
11    case Begun;
12    case AlreadyUnderway;
13
14    public function describeForWorker(WorkerId $workerId): string
15    {
16        return match ($this) {
17            self::Begun => \sprintf('Worker %d is restarting.', $workerId->value),
18            self::AlreadyUnderway => \sprintf('Worker %d is already starting or stopping.', $workerId->value),
19        };
20    }
21}