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

InputObject   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 32
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 32
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: 01.12.15
4
 *
5
 * @author Portey Vasil <[email protected]>
6
 */
7
8
namespace Youshido\GraphQL\Parser\Ast\ArgumentValue;
9
10
11
class InputObject implements ValueInterface
12
{
13
14
    protected $object = [];
15
16
    /**
17
     * InputList constructor.
18
     *
19
     * @param array $object
20
     */
21 2
    public function __construct(array $object)
22
    {
23 2
        $this->object = $object;
24 2
    }
25
26
    /**
27
     * @return array
28
     */
29 1
    public function getValue()
30
    {
31 1
        return $this->object;
32
    }
33
34
    /**
35
     * @param array $value
36
     */
37 1
    public function setValue($value)
38
    {
39 1
        $this->object = $value;
40 1
    }
41
42
}