Lines 0.00% 0 / 5
Functions and Methods 0.00% 0 / 1
Classes and Traits 0.00% 0 / 1
Name Lines Functions and Methods CRAP Classes and Traits
DoctorOutcome 0.00% 0 / 5 0.00% 0 / 1 30 0.00% 0 / 1
 getMark 0.00% 0 / 5 0.00% 0 / 1 30
1<?php
2
3declare(strict_types=1);
4
5namespace Stewart\Runtime\Console\Doctor;
6
7enum DoctorOutcome
8{
9    case Pass;
10    case Warn;
11    case Skip;
12    case Fail;
13
14    public function getMark(): string
15    {
16        return match ($this) {
17            self::Pass => '✓',
18            self::Warn => '! warn',
19            self::Skip => '– skip',
20            self::Fail => '✗ FAIL',
21        };
22    }
23}