JoinTypeType::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 9
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 11
rs 10
ccs 9
cts 9
cp 1
cc 1
nc 1
nop 0
crap 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