1 | <?php |
||
32 | class ExecutionContext implements ExecutionContextInterface |
||
33 | { |
||
34 | use ErrorContainerTrait; |
||
35 | |||
36 | /** @var AbstractSchema */ |
||
37 | private $schema; |
||
38 | |||
39 | 73 | /** @var Request */ |
|
40 | private $request; |
||
41 | 73 | ||
42 | 73 | /** @var ContainerInterface */ |
|
43 | private $container; |
||
44 | 73 | ||
45 | 73 | /** @var array */ |
|
46 | private $typeFieldLookupTable; |
||
47 | 73 | ||
48 | /** |
||
49 | * ExecutionContext constructor. |
||
50 | 73 | * |
|
51 | 1 | * @param AbstractSchema $schema |
|
52 | 1 | */ |
|
53 | public function __construct(AbstractSchema $schema) |
||
61 | 73 | ||
62 | /** |
||
63 | * @return AbstractSchema |
||
64 | */ |
||
65 | public function getSchema() |
||
69 | |||
70 | /** |
||
71 | * @param AbstractSchema $schema |
||
72 | * |
||
73 | * @return $this |
||
74 | */ |
||
75 | public function setSchema(AbstractSchema $schema) |
||
81 | |||
82 | /** |
||
83 | * @param AbstractObjectType $type |
||
84 | * @param string $fieldName |
||
85 | * |
||
86 | 67 | * @return Field |
|
87 | */ |
||
88 | 67 | public function getField(AbstractObjectType $type, $fieldName) |
|
102 | |||
103 | /** |
||
104 | * @return Request |
||
105 | */ |
||
106 | public function getRequest() |
||
110 | |||
111 | 1 | /** |
|
112 | * @param Request $request |
||
113 | 1 | * |
|
114 | * @return $this |
||
115 | */ |
||
116 | public function setRequest(Request $request) |
||
122 | |||
123 | 70 | public function get($id) |
|
127 | |||
128 | /** |
||
129 | * @return ContainerInterface |
||
130 | */ |
||
131 | public function getContainer() |
||
135 | |||
136 | /** |
||
137 | * @param ContainerInterface $container |
||
138 | * |
||
139 | * @return $this |
||
140 | */ |
||
141 | public function setContainer(ContainerInterface $container) |
||
147 | |||
148 | protected function validateSchema(): void |
||
156 | |||
157 | protected function introduceIntrospectionFields(): void |
||
163 | } |
||
164 |