NodeBase   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 19
ccs 7
cts 7
cp 1
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getLocation() 0 4 1
A getChildren() 0 4 1
1
<?php
2
3
namespace HansOtt\GraphQL\Shared;
4
5
abstract class NodeBase implements Node
6
{
7
    public $location;
8
9 66
    public function __construct(Location $location = null)
10
    {
11 66
        $this->location = $location;
12 66
    }
13
14 60
    public function getLocation()
15
    {
16 60
        return $this->location;
17
    }
18
19 3
    public function getChildren()
20
    {
21 3
        return array();
22
    }
23
}
24