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

InlineFragmentNode::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 InlineFragmentNode extends Node implements SelectionNode
6
{
7
    public $kind = NodeKind::INLINE_FRAGMENT;
8
9
    /**
10
     * @var NamedTypeNode
11
     */
12
    public $typeCondition;
13
14
    /**
15
     * @var DirectiveNode[]|null
16
     */
17
    public $directives;
18
19
    /**
20
     * @var SelectionSetNode
21
     */
22
    public $selectionSet;
23
24 1
    public function getKind() : string
25
    {
26 1
        return NodeKind::INLINE_FRAGMENT;
27
    }
28
}
29