| Total Complexity | 5 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class RelationArgumentGenerator |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Generates a GraphQL mutation argument for a relation field |
||
| 12 | * |
||
| 13 | * @param Type[] $typeFields |
||
| 14 | * @param bool $required Should the relationship fields be required? |
||
| 15 | * @return array |
||
| 16 | */ |
||
| 17 | public static function generate(array $typeFields): array |
||
| 36 |