| Total Complexity | 2 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class Introspection { |
||
| 10 | |||
| 11 | /** |
||
| 12 | * @var \Drupal\graphql\GraphQL\Execution\QueryProcessor |
||
| 13 | */ |
||
| 14 | protected $queryProcessor; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Constructs an Introspection object. |
||
| 18 | * |
||
| 19 | * @param \Drupal\graphql\GraphQL\Execution\QueryProcessor $queryProcessor |
||
| 20 | * The query processor srevice. |
||
| 21 | */ |
||
| 22 | public function __construct(QueryProcessor $queryProcessor) { |
||
| 23 | $this->queryProcessor = $queryProcessor; |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Perform an introspection query and return result. |
||
| 28 | * |
||
| 29 | * @param string $schema |
||
| 30 | * The name of the graphql schema to introspect. |
||
| 31 | * |
||
| 32 | * @return array The introspection result as an array. |
||
| 33 | * The introspection result as an array. |
||
| 34 | */ |
||
| 35 | public function introspect($schema) { |
||
| 40 | } |
||
| 41 | |||
| 43 |