Completed
Push — master ( bd3178...998f3f )
by Christoffer
04:52 queued 02:42
created

ValueTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 24
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getValue() 0 3 1
A setValue() 0 4 1
1
<?php
2
3
namespace Digia\GraphQL\Language\AST\Node;
4
5
trait ValueTrait
6
{
7
8
    /**
9
     * @var mixed|null
10
     */
11
    protected $value;
12
13
    /**
14
     * @return mixed|null
15
     */
16
    public function getValue()
17
    {
18
        return $this->value;
19
    }
20
21
    /**
22
     * @param mixed|null $value
23
     * @return $this
24
     */
25
    public function setValue($value)
26
    {
27
        $this->value = $value;
28
        return $this;
29
    }
30
}
31