Failed Conditions
Push — master ( cde8a4...83021f )
by Sam
06:52
created

UserStatusType   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 9
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getPossibleValues() 0 7 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Application\DBAL\Types;
6
7
use Application\Model\User;
8
9
class UserStatusType extends AbstractEnumType
10
{
11 13
    protected function getPossibleValues(): array
12
    {
13
        return [
14 13
            User::STATUS_INACTIVE,
15
            User::STATUS_ACTIVE,
16
            User::STATUS_NEW,
17
            User::STATUS_ARCHIVED,
18
        ];
19
    }
20
}
21