| Conditions | 3 |
| Paths | 3 |
| Total Lines | 16 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 16 | public static function processModelFieldDirective( |
||
| 17 | ModelGenerator $generator, |
||
| 18 | \GraphQL\Type\Definition\FieldDefinition $field, |
||
| 19 | \GraphQL\Language\AST\DirectiveNode $directive |
||
| 20 | ): void { |
||
| 21 | foreach ($directive->arguments as $arg) { |
||
| 22 | /** |
||
| 23 | * @var \GraphQL\Language\AST\ArgumentNode $arg |
||
| 24 | */ |
||
| 25 | |||
| 26 | $value = $arg->value->value; |
||
|
|
|||
| 27 | |||
| 28 | switch ($arg->name->value) { |
||
| 29 | case 'class': |
||
| 30 | $generator->parentClassName = $value; |
||
| 31 | break; |
||
| 32 | } |
||
| 43 |