JoinTypeType   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 7
c 1
b 0
f 0
dl 0
loc 13
rs 10
ccs 9
cts 9
cp 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 11 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace GraphQL\Doctrine\Definition;
6
7
use GraphQL\Type\Definition\EnumType;
8
9
/**
10
 * An enum for join types to be used in DQL.
11
 */
12
final class JoinTypeType extends EnumType
13
{
14 121
    public function __construct()
15
    {
16 121
        $config = [
17 121
            'description' => 'Join types to be used in DQL',
18 121
            'values' => [
19 121
                'innerJoin',
20 121
                'leftJoin',
21 121
            ],
22 121
        ];
23
24 121
        parent::__construct($config);
25
    }
26
}
27