| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3.0176 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | 1 | public function resolve($value = null, $args = []) |
|
| 17 | { |
||
| 18 | 1 | $this->collectTypes(SchemaType::$schema->getQueryType()); |
|
| 19 | 1 | $this->collectTypes(SchemaType::$schema->getMutationType()); |
|
| 20 | |||
| 21 | 1 | foreach ($this->types as $name => $type) { |
|
| 22 | 1 | if ($name == $args['name']) { |
|
| 23 | 1 | return $type; |
|
| 24 | } |
||
| 25 | 1 | } |
|
| 26 | |||
| 27 | return null; |
||
| 28 | } |
||
| 29 | |||
| 44 | } |