Lines 0.00% 0 / 4
Methods 0.00% 0 / 1
Classes 0.00% 0 / 1
Name Lines Methods CRAP
 describeOutcome 0.00% 0 / 4 0.00% 0 / 1 20
7enum ReloadRequestOutcome
8{
9    case Started;
10    case AlreadyUnderway;
11    case NotAccepting;
12
13    public function describeOutcome(): string
14    {
15        return match ($this) {
16            self::Started => 'Reload started; stewart status shows how it went.',
17            self::AlreadyUnderway => 'A reload is already underway.',
18            self::NotAccepting => 'Stewart is not running its apps yet, so there is nothing to reload.',
19        };
20    }
21}