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

RelationshipType   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 10
dl 0
loc 15
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 13 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Application\Api\Enum;
6
7
class RelationshipType extends AbstractEnumType
8
{
9 1
    public function __construct()
10
    {
11
        $config = [
12 1
            \Application\DBAL\Types\RelationshipType::HOUSEHOLDER => 'chef(e) de famille',
13
            \Application\DBAL\Types\RelationshipType::PARTNER => 'conjoint',
14
            \Application\DBAL\Types\RelationshipType::EX_PARTNER => 'ex-conjoint',
15
            \Application\DBAL\Types\RelationshipType::CHILD => 'enfant',
16
            \Application\DBAL\Types\RelationshipType::PARENT => 'parent',
17
            \Application\DBAL\Types\RelationshipType::SISTER => 'soeur',
18
            \Application\DBAL\Types\RelationshipType::BROTHER => 'frère',
19
        ];
20
21 1
        parent::__construct($config);
22 1
    }
23
}
24