1 | <?php |
||
18 | final class RequestProcessor |
||
19 | { |
||
20 | |||
21 | /** |
||
22 | * @var RequestParserInterface |
||
23 | */ |
||
24 | private $requestParser; |
||
25 | |||
26 | /** |
||
27 | * @var MutationFieldsProviderInterface |
||
28 | */ |
||
29 | private $mutationFieldsProvider; |
||
30 | |||
31 | /** |
||
32 | * @var QueryFieldsProviderInterface |
||
33 | */ |
||
34 | private $queryFieldsProvider; |
||
35 | |||
36 | |||
37 | 2 | public function __construct(RequestParserInterface $requestParser) |
|
41 | |||
42 | |||
43 | 2 | public function setMutationFieldsProvider(MutationFieldsProviderInterface $mutationFieldsProvider) |
|
47 | |||
48 | |||
49 | 2 | public function setQueryFieldsProvider(QueryFieldsProviderInterface $queryFieldsProvider) |
|
53 | |||
54 | |||
55 | /** |
||
56 | * @param array $rootValue |
||
57 | * @param mixed|NULL $context |
||
58 | * @param array|null $allowedQueries |
||
59 | * @param array|null $allowedMutations |
||
60 | * @return array |
||
61 | */ |
||
62 | 1 | public function process( |
|
89 | |||
90 | |||
91 | 1 | private function createSchema(array $allowedQueries = NULL, array $allowedMutations = NULL): Schema |
|
98 | |||
99 | |||
100 | 1 | private function createQueryObject(array $allowedQueries = NULL): ObjectType |
|
107 | |||
108 | |||
109 | 1 | private function createMutationObject(array $allowedMutations = NULL): ObjectType |
|
116 | |||
117 | |||
118 | 1 | private function isDebug(): int |
|
122 | |||
123 | } |
||
124 |