Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
7 / 7
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
LogLevelEnum
100.00% covered (success)
100.00%
7 / 7
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 toArray
100.00% covered (success)
100.00%
7 / 7
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3namespace App;
4
5enum LogLevelEnum: string
6{
7    case DEBUG = 'debug';
8    case INFO = 'info';
9    case WARNING = 'warning';
10    case ERROR = 'error';
11    case CRITICAL = 'critical';
12
13    /**
14     * @return array<int, string>
15     */
16    public static function toArray(): array
17    {
18        return [
19            self::DEBUG->value,
20            self::INFO->value,
21            self::WARNING->value,
22            self::ERROR->value,
23            self::CRITICAL->value,
24        ];
25    }
26}