Passed
Push — master ( 7ab89a...b0680f )
by Adrien
01:53
created

Argument::toArray()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 13
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 7
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 13
rs 9.4285
c 0
b 0
f 0
ccs 7
cts 7
cp 1
cc 2
eloc 7
nc 2
nop 0
crap 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace GraphQL\Doctrine\Annotation;
6
7
/**
8
 * Annotation used to override values for an field argument in GraphQL.
9
 *
10
 * The name of the argument is required and must match the actual PHP argument name.
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
 * @Annotation
16
 * @Target({"ANNOTATION"})
17
 * @Attributes({
18
 *     @Attribute("name", required=true, type="string"),
19
 *     @Attribute("type", required=false, type="string"),
20
 *     @Attribute("description", required=false, type="string"),
21
 *     @Attribute("defaultValue", required=false, type="mixed"),
22
 * })
23
 */
24
class Argument extends AbstractAnnotation
25
{
26
}
27