Completed
Push — master ( 6acfe1...0042b2 )
by Radu
11:51 queued 10s
created

LogLevel::getList()   A

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
10
    public const EMERGENCY = 'emergency';
11
    public const ALERT = 'alert';
12
    public const CRITICAL = 'critical';
13
    public const ERROR = 'error';
14
    public const WARNING = 'warning';
15
    public const NOTICE = 'notice';
16
    public const INFO = 'info';
17
    public const DEBUG = 'debug';
18
19
    /**
20
    * @return array<int,string>
21
    */
22
    public static function getList(): array
23
    {
24
        return [
25
            self::EMERGENCY,
26
            self::ALERT,
27
            self::CRITICAL,
28
            self::ERROR,
29
            self::WARNING,
30
            self::NOTICE,
31
            self::INFO,
32
            self::DEBUG,
33
        ];
34
    }
35
}
36