SourceLocation   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 40
ccs 0
cts 13
cp 0
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getLine() 0 4 1
A getColumn() 0 4 1
1
<?php
2
3
namespace Fubhy\GraphQL\Language;
4
5
/**
6
 * Represents a location in a Source.
7
 */
8
class SourceLocation
9
{
10
    /**
11
     * @var int
12
     */
13
    protected $line;
14
15
    /**
16
     * @var int
17
     */
18
    protected $column;
19
20
    /**
21
     * Constructor.
22
     *
23
     * @param int $line
24
     * @param int $column
25
     */
26
    public function __construct($line, $column)
27
    {
28
        $this->line = $line;
29
        $this->column = $column;
30
    }
31
32
    /**
33
     * @return int
34
     */
35
    public function getLine()
36
    {
37
        return $this->line;
38
    }
39
40
    /**
41
     * @return int
42
     */
43
    public function getColumn()
44
    {
45
        return $this->column;
46
    }
47
}
48