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

Literal   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 23
rs 10
ccs 8
cts 8
cp 1

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getValue() 0 4 1
A setValue() 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\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