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

FragmentReference   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 37.5%

Importance

Changes 3
Bugs 0 Features 1
Metric Value
wmc 3
c 3
b 0
f 1
lcom 0
cbo 0
dl 0
loc 33
ccs 3
cts 8
cp 0.375
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
 * 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
}