Completed
Push — master ( 14d264...b8b70e )
by Portey
05:01
created

Reference   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getName() 0 4 1
A setName() 0 4 1
1
<?php
2
/**
3
 * @author Paweł Dziok <[email protected]>
4
 */
5
6
namespace Youshido\GraphQL\Parser\Ast;
7
8
9
class Reference
10
{
11
12
    /** @var  string */
13
    private $name;
14
15
    public function __construct($name)
16
    {
17
        $this->name = $name;
18
    }
19
20
    /**
21
     * @return string
22
     */
23
    public function getName()
24
    {
25
        return $this->name;
26
    }
27
28
    /**
29
     * @param string $name
30
     */
31
    public function setName($name)
32
    {
33
        $this->name = $name;
34
    }
35
36
}