UserRoleType::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 7
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 9
ccs 7
cts 7
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Application\Api\Enum;
6
7
use Application\Model\User;
8
use Ecodev\Felix\Api\Enum\EnumType;
9
10
class UserRoleType extends EnumType
11
{
12 1
    public function __construct()
13
    {
14 1
        $config = [
15 1
            User::ROLE_MEMBER => 'Client',
16 1
            User::ROLE_FACILITATOR => 'Facilitateur',
17 1
            User::ROLE_ADMINISTRATOR => 'Administrateur',
18 1
        ];
19
20 1
        parent::__construct($config);
21
    }
22
}
23