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

RelationshipType   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 16
dl 0
loc 20
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getPossibleValues() 0 10 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Application\DBAL\Types;
6
7
class RelationshipType extends AbstractEnumType
8
{
9
    const HOUSEHOLDER = 'householder';
10
    const PARTNER = 'partner';
11
    const EX_PARTNER = 'ex_partner';
12
    const CHILD = 'child';
13
    const PARENT = 'parent';
14
    const SISTER = 'sister';
15
    const BROTHER = 'brother';
16
17 10
    protected function getPossibleValues(): array
18
    {
19
        return [
20 10
            self::HOUSEHOLDER,
21 10
            self::PARTNER,
22 10
            self::EX_PARTNER,
23 10
            self::CHILD,
24 10
            self::PARENT,
25 10
            self::SISTER,
26 10
            self::BROTHER,
27
        ];
28
    }
29
}
30