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

InlineFragmentNode   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 6
dl 0
loc 22
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getKind() 0 3 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