Passed
Push — dev ( 00d352...e70ec0 )
by Nico
05:38
created

WormholeEntryModeEnum::getDescription()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 5
ccs 0
cts 4
cp 0
crap 2
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Stu\Component\Ship\Wormhole;
6
7
enum WormholeEntryModeEnum: int
8
{
9
    case ALLOW = 1;
10
    case DENY = 2;
11
12
    public function getDescription(): string
13
    {
14
        return match ($this) {
15
            self::ALLOW => 'Erlaubt',
16
            self::DENY => 'Verboten'
17
        };
18
    }
19
}
20