LogLevel::getList()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 9
c 0
b 0
f 0
dl 0
loc 11
rs 9.9666
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace WebServCo\Framework\Log;
6
7
final class LogLevel
8
{
9
    public const EMERGENCY = 'emergency';
10
    public const ALERT = 'alert';
11
    public const CRITICAL = 'critical';
12
    public const ERROR = 'error';
13
    public const WARNING = 'warning';
14
    public const NOTICE = 'notice';
15
    public const INFO = 'info';
16
    public const DEBUG = 'debug';
17
18
    /**
19
    * @return array<int,string>
20
    */
21
    public static function getList(): array
22
    {
23
        return [
24
            self::EMERGENCY,
25
            self::ALERT,
26
            self::CRITICAL,
27
            self::ERROR,
28
            self::WARNING,
29
            self::NOTICE,
30
            self::INFO,
31
            self::DEBUG,
32
        ];
33
    }
34
}
35