Completed
Push — master ( af419f...577784 )
by Portey
06:50
created

FragmentReference::getName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 2
Bugs 0 Features 1
Metric Value
c 2
b 0
f 1
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
/**
3
 * Date: 23.11.15
4
 *
5
 * @author Portey Vasil <[email protected]>
6
 */
7
8
namespace Youshido\GraphQL\Parser\Ast;
9
10
11
class FragmentReference
12
{
13
14
    /** @var  string */
15
    protected $name;
16
17
    /**
18
     * FragmentReference constructor.
19
     * @param $name
20
     */
21 3
    public function __construct($name)
22
    {
23 3
        $this->name = $name;
24 3
    }
25
26
    /**
27
     * @return string
28
     */
29 1
    public function getName()
30
    {
31 1
        return $this->name;
32
    }
33
34
    /**
35
     * @param string $name
36
     */
37
    public function setName($name)
38
    {
39
        $this->name = $name;
40
    }
41
42
43
}