Completed
Push — master ( 6c95d8...49bfd8 )
by Christoffer
03:47 queued 01:30
created

ExecutionEnvironment::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 4
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace Digia\GraphQL\Execution;
4
5
class ExecutionEnvironment
6
{
7
    /**
8
     * @var mixed
9
     */
10
    protected $value;
11
12
    /**
13
     * @var array
14
     */
15
    protected $arguments;
16
17
    /**
18
     * @var mixed
19
     */
20
    protected $context;
21
22
    /**
23
     * @var ResolveInfo
24
     */
25
    protected $info;
26
27
    /**
28
     * ExecutionEnvironment constructor.
29
     * @param mixed       $value
30
     * @param array       $arguments
31
     * @param mixed       $context
32
     * @param ResolveInfo $info
33
     */
34
    public function __construct($value, array $arguments, $context, ResolveInfo $info)
35
    {
36
        $this->value     = $value;
37
        $this->arguments = $arguments;
38
        $this->context   = $context;
39
        $this->info      = $info;
40
    }
41
42
    /**
43
     * @return mixed
44
     */
45
    public function getValue()
46
    {
47
        return $this->value;
48
    }
49
50
    /**
51
     * @return array
52
     */
53
    public function getArguments(): array
54
    {
55
        return $this->arguments;
56
    }
57
58
    /**
59
     * @return mixed
60
     */
61
    public function getContext()
62
    {
63
        return $this->context;
64
    }
65
66
    /**
67
     * @return ResolveInfo
68
     */
69
    public function getInfo(): ResolveInfo
70
    {
71
        return $this->info;
72
    }
73
}
74