FilterGroupCondition::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 3
rs 10
c 1
b 0
f 0
eloc 0
ccs 2
cts 2
cp 1
cc 1
nc 1
nop 1
crap 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, see README.md#type-syntax
20
     */
21 13
    public function __construct(
22
        public readonly string $type,
23 13
    ) {}
24
}
25