Completed
Push — master ( b8b70e...552805 )
by Portey
03:44
created

Field   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 62.5%

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 5
cts 8
cp 0.625
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A setName() 0 4 1
A getName() 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 Field
12
{
13
    /** @var string */
14
    private $name;
15
16 8
    public function __construct($name)
17
    {
18 8
        $this->name = $name;
19 8
    }
20
21
    /**
22
     * @return string
23
     */
24 2
    public function getName()
25
    {
26 2
        return $this->name;
27
    }
28
29
    /**
30
     * @param string $name
31
     */
32
    public function setName($name)
33
    {
34
        $this->name = $name;
35
    }
36
37
38
}