Conditions | 2 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
23 | public function __construct(array $config = []) |
||
24 | { |
||
25 | $defaults = [ |
||
26 | 'name' => 'Mutation', |
||
27 | 'fields' => function () { |
||
28 | $mutations = []; |
||
29 | foreach ($this->endpoint->allMutations() as $query) { |
||
30 | $mutations[$query->getName()] = $this->getQueryConfig($query); |
||
31 | } |
||
32 | |||
33 | return $mutations; |
||
34 | }, |
||
35 | ]; |
||
36 | |||
37 | parent::__construct(array_merge($defaults, $config)); |
||
38 | } |
||
40 |