InlineFragment   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 25
ccs 7
cts 7
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 12 1
1
<?php
2
3
namespace Fubhy\GraphQL\Language\Node;
4
5
use Fubhy\GraphQL\Language\Location;
6
use Fubhy\GraphQL\Language\Node;
7
8
class InlineFragment extends Node implements SelectionInterface
9
{
10
    const KIND = Node::KIND_INLINE_FRAGMENT;
11
12
    /**
13
     * Constructor.
14
     *
15
     * @param \Fubhy\GraphQL\Language\Node\NamedType $typeCondition
16
     * @param \Fubhy\GraphQL\Language\Node\Directive[] $directives
17
     * @param \Fubhy\GraphQL\Language\Node\SelectionSet $selectionSet
18
     * @param \Fubhy\GraphQL\Language\Location $location
19
     */
20 18
    public function __construct(
21
        NamedType $typeCondition,
22
        array $directives = [],
23
        SelectionSet $selectionSet,
24
        Location $location = NULL
25
    ) {
26 18
        parent::__construct($location, [
27 18
            'typeCondition' => $typeCondition,
28 18
            'directives' => $directives,
29 18
            'selectionSet' => $selectionSet,
30 18
        ]);
31 18
    }
32
}
33