Completed
Push — master ( e40fed...ed70fa )
by Portey
02:55
created

FragmentReference::setName()   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 2
Bugs 0 Features 1
Metric Value
c 2
b 0
f 1
dl 0
loc 4
ccs 0
cts 3
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 2
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 1
    public function __construct($name)
22
    {
23 1
        $this->name = $name;
24 1
    }
25
26
    /**
27
     * @return string
28
     */
29
    public function getName()
30
    {
31
        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
}