SelectionFragmentSpread   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 66.67%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 15
ccs 4
cts 6
cp 0.6667
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getChildren() 0 4 1
1
<?php
2
3
namespace HansOtt\GraphQL\Query;
4
5
final class SelectionFragmentSpread extends NodeBase implements Selection
6
{
7
    public $fragmentName;
8
9 3
    public function __construct($fragmentName, Location $location = null)
10
    {
11 3
        parent::__construct($location);
12 3
        $this->fragmentName = (string) $fragmentName;
13 3
    }
14
15
    public function getChildren()
16
    {
17
        return array();
18
    }
19
}
20