SelectionSet   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 19
ccs 6
cts 6
cp 1
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 SelectionSet extends NodeBase implements Node
6
{
7
    public $selections;
8
9
    /**
10
     * @param Selection[] $selections
11
     * @param Location|null $location
12
     */
13 48
    public function __construct(array $selections, Location $location = null)
14
    {
15 48
        parent::__construct($location);
16 48
        $this->selections = $selections;
17 48
    }
18
19 3
    public function getChildren()
20
    {
21 3
        return $this->selections;
22
    }
23
}
24