Completed
Push — master ( d52ee7...e7842c )
by Alexandr
03:54
created

Literal::getValue()   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 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
ccs 2
cts 2
cp 1
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\ArgumentValue;
9
10
11
class Literal implements ValueInterface
12
{
13
14
    private $value;
15
16 23
    public function __construct($value)
17
    {
18 23
        $this->value = $value;
19 23
    }
20
21 10
    public function getValue()
22
    {
23 10
        return $this->value;
24
    }
25
26
    /**
27
     * @param string $value
28
     */
29 1
    public function setValue($value)
30
    {
31 1
        $this->value = $value;
32 1
    }
33
}
34