| Conditions | 2 |
| Paths | 2 |
| Total Lines | 26 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | public function execute( |
||
| 40 | Schema $schema, |
||
| 41 | DocumentNode $documentNode, |
||
| 42 | $rootValue = null, |
||
| 43 | $contextValue = null, |
||
| 44 | $variableValues = [], |
||
| 45 | $operationName = null, |
||
| 46 | callable $fieldResolver = null |
||
| 47 | ) : ExecutionResult { |
||
| 48 | try { |
||
| 49 | $context = $this->contextBuilder->buildContext( |
||
| 50 | $schema, |
||
| 51 | $documentNode, |
||
| 52 | $rootValue, |
||
| 53 | $contextValue, |
||
| 54 | $variableValues, |
||
| 55 | $operationName, |
||
| 56 | $fieldResolver |
||
| 57 | ); |
||
| 58 | } catch (ExecutionException $error) { |
||
| 59 | return new ExecutionResult(['data' => null], [$error]); |
||
| 60 | } |
||
| 61 | |||
| 62 | $data = $context->getExecutionStrategy()->execute(); |
||
| 63 | |||
| 64 | return new ExecutionResult($data, $context->getErrors()); |
||
| 65 | } |
||
| 67 |