We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Conditions | 2 |
Paths | 2 |
Total Lines | 22 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
9 | public function toMappingDefinition(array $config) |
||
10 | { |
||
11 | $name = $config['name']; |
||
12 | $resolveType = empty($config['resolveType']) ? null : $config['resolveType']; |
||
13 | |||
14 | return [ |
||
15 | $name => [ |
||
16 | 'type' => 'interface', |
||
17 | 'config' => [ |
||
18 | 'name' => $config['name'], |
||
19 | 'description' => 'Fetches an object given its ID', |
||
20 | 'fields' => [ |
||
21 | 'id' => [ |
||
22 | 'type' => 'ID!', |
||
23 | 'description' => 'The ID of an object', |
||
24 | ], |
||
25 | ], |
||
26 | 'resolveType' => $resolveType, |
||
27 | ], |
||
28 | ], |
||
29 | ]; |
||
30 | } |
||
31 | } |
||
32 |