CheckAbstract::getImportances()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 7
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
/**
4
 * This file is part of the `tvi/monitor-bundle` project.
5
 *
6
 * (c) https://github.com/turnaev/monitor-bundle/graphs/contributors
7
 *
8
 * For the full copyright and license information, please view the LICENSE.md
9
 * file that was distributed with this source code.
10
 */
0 ignored issues
show
Coding Style introduced by
PHP version not specified
Loading history...
Coding Style introduced by
Missing @category tag in file comment
Loading history...
Coding Style introduced by
Missing @package tag in file comment
Loading history...
Coding Style introduced by
Missing @author tag in file comment
Loading history...
Coding Style introduced by
Missing @license tag in file comment
Loading history...
Coding Style introduced by
Missing @link tag in file comment
Loading history...
11
12
namespace Tvi\MonitorBundle\Check;
13
14
use JMS\Serializer\Annotation as JMS;
15
16
/**
0 ignored issues
show
Coding Style introduced by
Missing short description in doc comment
Loading history...
17
 * @JMS\ExclusionPolicy("all")
18
 * @JMS\AccessorOrder("custom", custom = { "id", "label", "group", "descr", "importance", "tags"})
19
 *
20
 * @author Vladimir Turnaev <[email protected]>
21
 */
0 ignored issues
show
Coding Style introduced by
Missing @category tag in class comment
Loading history...
Coding Style introduced by
Missing @package tag in class comment
Loading history...
Coding Style introduced by
Missing @license tag in class comment
Loading history...
Coding Style introduced by
Missing @link tag in class comment
Loading history...
22
abstract class CheckAbstract extends \ZendDiagnostics\Check\AbstractCheck implements CheckInterface
23
{
24
    use CheckTrait;
25
26
    const IMPORTANCE_EMERGENCY = 'EMERGENCY';
27
    const IMPORTANCE_WARNING = 'WARNING';
28
    const IMPORTANCE_NOTE = 'NOTE';
29
    const IMPORTANCE_INFO = 'INFO';
30
31
    /**
0 ignored issues
show
Coding Style introduced by
Missing short description in doc comment
Loading history...
32
     * @return string[]
33
     */
34 57
    public static function getImportances(): array
35
    {
36
        return [
37 57
            self::IMPORTANCE_EMERGENCY => self::IMPORTANCE_EMERGENCY,
38 57
            self::IMPORTANCE_WARNING => self::IMPORTANCE_WARNING,
39 57
            self::IMPORTANCE_NOTE => self::IMPORTANCE_NOTE,
40 57
            self::IMPORTANCE_INFO => self::IMPORTANCE_INFO,
41
        ];
42
    }
43
}
44