Failed Conditions
Pull Request — master (#10)
by Adrien
02:42
created

JoinTypeType   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 13
rs 10
c 0
b 0
f 0
ccs 3
cts 3
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 62
    public function __construct()
15
    {
16
        $config = [
17 62
            'description' => 'Join types to be used in DQL',
18
            'values' => [
19
                'innerJoin',
20
                'leftJoin',
21
            ],
22
        ];
23
24 62
        parent::__construct($config);
25 62
    }
26
}
27