Failed Conditions
Push — master ( 58c386...42cc4d )
by Adrien
05:55
created

SexType   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 18
dl 0
loc 28
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 26 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Application\Api\Enum;
6
7
use GraphQL\Type\Definition\EnumType;
8
9
class SexType extends EnumType
10
{
11 1
    public function __construct()
12
    {
13
        $config = [
14 1
            'name' => 'Sex',
15
            'description' => 'The ISO/IEC 5218 sex',
16
            'values' => [
17
                'not_known' => [
18
                    'value' => 0,
19
                    'description' => 'inconnu',
20
                ],
21
                'male' => [
22
                    'value' => 1,
23
                    'description' => 'masculin',
24
                ],
25
                'female' => [
26
                    'value' => 2,
27
                    'description' => 'féminin',
28
                ],
29
                'not_applicable' => [
30
                    'value' => 9,
31
                    'description' => 'sans objet',
32
                ],
33
            ],
34
        ];
35
36 1
        parent::__construct($config);
37 1
    }
38
}
39