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

Argument   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 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 field argument in GraphQL.
11
 *
12
 * All other values are optional and should only be used to override
13
 * what is declared by the original argument of the method.
14
 */
15
#[Attribute(Attribute::TARGET_PARAMETER)]
16
final class Argument extends AbstractAttribute
17
{
18
    /**
19
     * @param null|string $type FQCN of PHP class implementing the GraphQL type
20
     */
21 10
    public function __construct(
22
        ?string $type = null,
23
        ?string $description = null,
24
        mixed $defaultValue = self::NO_VALUE_PASSED,
25
    ) {
26 10
        parent::__construct(null, $type, $description, $defaultValue);
27
    }
28
}
29