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

InputObject::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: 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
}