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

Reference::getName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
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
}