AbstractAst   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 62.5%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 21
ccs 5
cts 8
cp 0.625
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 setLocation() 0 4 1
1
<?php
2
/**
3
 * Date: 16.11.16
4
 *
5
 * @author Portey Vasil <[email protected]>
6
 */
7
8
namespace Youshido\GraphQL\Parser\Ast;
9
10
11
use Youshido\GraphQL\Parser\Ast\Interfaces\LocatableInterface;
12
use Youshido\GraphQL\Parser\Location;
13
14
abstract class AbstractAst implements LocatableInterface
15
{
16
17
    /** @var  Location */
18
    private $location;
19
20 113
    public function __construct(Location $location)
21
    {
22 113
        $this->location = $location;
23 113
    }
24
25 17
    public function getLocation()
26
    {
27 17
        return $this->location;
28
    }
29
30
    public function setLocation(Location $location)
31
    {
32
        $this->location = $location;
33
    }
34
}