Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
28 | 3 | protected function buildField(array $config, ReflectionMethod $method): Webonyx\FieldDefinition |
|
29 | { |
||
30 | 3 | $config['args'] = \iterator_to_array($iterator = $this->getFieldArguments($method)); |
|
31 | |||
32 | 3 | return new OuterObjectField( |
|
33 | 3 | $config, |
|
34 | 3 | $method->getDeclaringClass()->getName(), |
|
35 | 3 | $method->getName(), |
|
36 | 3 | $iterator->getReturn(), |
|
37 | 3 | $this->scope, |
|
38 | 3 | $this->invoker, |
|
39 | 3 | ); |
|
42 |