Passed
Pull Request — master (#119)
by
unknown
20:03 queued 15:58
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
<?php
2
3
declare(strict_types=1);
4
5
namespace Application\Api\Enum;
0 ignored issues
show
Bug introduced by
A parse error occurred: Syntax error, unexpected T_ENUM, expecting T_STRING on line 5 at column 26
Loading history...
6
7
use Application\Model\User;
8
use Ecodev\Felix\Api\Enum\EnumType;
9
10
class UserStatusType extends EnumType
11
{
12 1
    public function __construct()
13
    {
14 1
        $config = [
15
            User::STATUS_NEW => 'Nouveau',
16
            User::STATUS_ACTIVE => 'Actif',
17
            User::STATUS_INACTIVE => 'Inactif',
18
            User::STATUS_ARCHIVED => 'Archivé',
19
        ];
20
21 1
        parent::__construct($config);
22
    }
23
}
24