Lines 0.00% 0 / 4
Functions and Methods 0.00% 0 / 1
Classes and Traits 0.00% 0 / 1
Name Lines Functions and Methods CRAP Classes and Traits
ReloadOutcome 0.00% 0 / 4 0.00% 0 / 1 20 0.00% 0 / 1
 describeOutcome 0.00% 0 / 4 0.00% 0 / 1 20
1<?php
2
3declare(strict_types=1);
4
5namespace Stewart\Runtime\Lifecycle;
6
7enum ReloadOutcome: string
8{
9    case Applied = 'applied';
10    case PartlyApplied = 'partly_applied';
11    case Failed = 'failed';
12
13    public function describeOutcome(): string
14    {
15        return match ($this) {
16            self::Applied => 'applied',
17            self::PartlyApplied => 'partly applied',
18            self::Failed => 'failed',
19        };
20    }
21}