Failed Conditions
Push — master ( e31947...cc39b3 )
by Šimon
11s
created

FragmentSpreadNode::getKind()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
namespace GraphQL\Language\AST;
4
5
class FragmentSpreadNode extends Node implements SelectionNode
6
{
7
    public $kind = NodeKind::FRAGMENT_SPREAD;
8
9
    /**
10
     * @var NameNode
11
     */
12
    public $name;
13
14
    /**
15
     * @var DirectiveNode[]
16
     */
17
    public $directives;
18
19 2
    public function getKind() : string
20
    {
21 2
        return NodeKind::FRAGMENT_SPREAD;
22
    }
23
}
24