Completed
Push — master ( bf4763...20c688 )
by Hans
02:07
created

NodeBase   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 14
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

2 Methods

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