Failed Conditions
Push — master ( 05fc61...964283 )
by Adrien
02:24
created

FilterGroupCondition   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 2
c 1
b 0
f 0
dl 0
loc 8
rs 10
ccs 1
cts 1
cp 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 2 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace GraphQL\Doctrine\Attribute;
6
7
use Attribute;
8
9
/**
10
 * Attribute used to override values for a filterGroupCondition in GraphQL.
11
 *
12
 * This should only be used to override the Doctrine column type declared on the property by
13
 * a custom GraphQL type.
14
 */
15
#[Attribute(Attribute::TARGET_PROPERTY)]
16
final class FilterGroupCondition implements ApiAttribute
17
{
18
    /**
19
     * @param string $type FQCN of PHP class implementing the GraphQL type
20
     */
21 13
    public function __construct(public readonly string $type)
22
    {
23
    }
24
}
25