This repository has been archived by the owner on Mar 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
ExecutionArguments.php
73 lines (63 loc) · 1.6 KB
/
ExecutionArguments.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php
namespace Digia\GraphQL\Execution;
use Digia\GraphQL\Language\AST\Node\DocumentNode;
use Digia\GraphQL\Language\AST\Node\OperationDefinitionNode;
use Digia\GraphQL\Type\Schema;
class ExecutionArguments
{
/**
* @var Schema
*/
protected $schema;
/**
* @var DocumentNode
*/
protected $document;
/**
* @var mixed
*/
protected $rootValue;
/**
* @var mixed
*/
protected $contextValue;
/**
* @var array
*/
protected $variableValues;
/**
* @var OperationDefinitionNode
*/
protected $operation;
/**
* @var mixed
*/
protected $fieldResolver;
/**
* ExecutionArguments constructor.
* @param Schema $schema
* @param DocumentNode $document
* @param mixed $rootValue
* @param mixed $contextValue
* @param array $variableValues
* @param OperationDefinitionNode $operation
* @param mixed $fieldResolver
*/
public function __construct(
Schema $schema,
DocumentNode $document,
$rootValue,
$contextValue,
array $variableValues,
OperationDefinitionNode $operation,
$fieldResolver
) {
$this->schema = $schema;
$this->document = $document;
$this->rootValue = $rootValue;
$this->contextValue = $contextValue;
$this->variableValues = $variableValues;
$this->operation = $operation;
$this->fieldResolver = $fieldResolver;
}
}