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

UserStatusType   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 12
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 10 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Application\Api\Enum;
6
7
use Application\Model\User;
8
9
class UserStatusType extends AbstractEnumType
10
{
11 1
    public function __construct()
12
    {
13
        $config = [
14 1
            User::STATUS_INACTIVE => 'Inactif',
15
            User::STATUS_ACTIVE => 'Actif',
16
            User::STATUS_NEW => 'Nouveau',
17
            User::STATUS_ARCHIVED => 'Archivé',
18
        ];
19
20 1
        parent::__construct($config);
21 1
    }
22
}
23