Conditions | 4 |
Paths | 4 |
Total Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
42 | private function buildField(RuleInterface $rule, SchemaDefinition $definition): void |
||
43 | { |
||
44 | switch ($rule[0]->getValue()) { |
||
45 | case 'query': |
||
46 | $definition->withQuery($this->loadFieldType($rule[1])); |
||
47 | break; |
||
48 | |||
49 | case 'mutation': |
||
50 | $definition->withMutation($this->loadFieldType($rule[1])); |
||
51 | break; |
||
52 | |||
53 | case 'subscription': |
||
54 | $definition->withSubscription($this->loadFieldType($rule[1])); |
||
55 | break; |
||
56 | } |
||
57 | } |
||
58 | |||
68 |