Lines 0.00% 0 / 3
Methods 0.00% 0 / 1
Classes 0.00% 0 / 1
Name Lines Methods CRAP
 messageTemplate 0.00% 0 / 3 0.00% 0 / 1 12
9enum WorkerError: string implements ExceptionReason
10{
11    case Unknown = 'worker_unknown';
12    case ShuttingDown = 'shutting_down';
13
14    public function messageTemplate(): string
15    {
16        return match ($this) {
17            self::Unknown => 'No worker "{workerId}"; `stewart status` lists the workers.',
18            self::ShuttingDown => 'Stewart is shutting down, so worker {workerId} is not restarted.',
19        };
20    }
21}