SituationStatus   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 15
c 1
b 0
f 0
dl 0
loc 19
ccs 0
cts 9
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getLabel() 0 10 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Swis\Melvin\Enums;
6
7
use MyCLabs\Enum\Enum;
8
9
/**
10
 * @method static SituationStatus UNKNOWN()
11
 * @method static SituationStatus START()
12
 * @method static SituationStatus INITIAL()
13
 * @method static SituationStatus CONCEPT()
14
 * @method static SituationStatus FINAL()
15
 * @method static SituationStatus DELETED()
16
 */
17
final class SituationStatus extends Enum
18
{
19
    private const UNKNOWN = 'UNKNOWN';
20
    private const START = 'START';
21
    private const INITIAL = 'INITIAL';
22
    private const CONCEPT = 'CONCEPT';
23
    private const FINAL = 'FINAL';
24
    private const DELETED = 'DELETED';
25
26
    public function getLabel(): string
27
    {
28
        return [
29
            'UNKNOWN' => '',
30
            'START' => 'Bij aannemer',
31
            'INITIAL' => 'Initieel',
32
            'CONCEPT' => 'Concept',
33
            'FINAL' => 'Definitief',
34
            'DELETED' => 'Verwijderd',
35
        ][$this->getKey()];
36
    }
37
}
38