Total Complexity | 4 |
Total Lines | 46 |
Duplicated Lines | 0 % |
Coverage | 60% |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
16 | class GraphQLFieldEvent extends Event |
||
|
|||
17 | { |
||
18 | /** |
||
19 | * @var ResolverContext |
||
20 | */ |
||
21 | protected $context; |
||
22 | |||
23 | /** |
||
24 | * @var mixed|null |
||
25 | */ |
||
26 | protected $value; |
||
27 | |||
28 | /** |
||
29 | * GraphQLFieldEvent constructor. |
||
30 | * |
||
31 | * @param ResolverContext $context |
||
32 | * @param mixed|null $value |
||
33 | */ |
||
34 | 2 | public function __construct(ResolverContext $context, $value = null) |
|
35 | { |
||
36 | 2 | $this->context = $context; |
|
37 | 2 | $this->value = $value; |
|
38 | 2 | } |
|
39 | |||
40 | /** |
||
41 | * @return ResolverContext |
||
42 | */ |
||
43 | 2 | public function getContext(): ResolverContext |
|
46 | } |
||
47 | |||
48 | /** |
||
49 | * @return mixed|null |
||
50 | */ |
||
51 | public function getValue() |
||
54 | } |
||
55 | |||
56 | /** |
||
57 | * @param mixed $value |
||
58 | */ |
||
59 | public function setValue($value): void |
||
64 |