| Conditions | 3 |
| Paths | 4 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | 7 | public function resolve($value, array $args, ResolveInfo $info) |
|
| 38 | { |
||
| 39 | /** @var $value AbstractSchema $a */ |
||
| 40 | 7 | $this->types = []; |
|
| 41 | 7 | $this->collectTypes($value->getQueryType()); |
|
| 42 | |||
| 43 | 7 | if ($value->getMutationType()->hasFields()) { |
|
| 44 | 3 | $this->collectTypes($value->getMutationType()); |
|
| 45 | 3 | } |
|
| 46 | |||
| 47 | 7 | foreach ($value->getTypesList()->getTypes() as $type) { |
|
| 48 | 1 | $this->collectTypes($type); |
|
| 49 | 7 | } |
|
| 50 | |||
| 51 | 7 | return array_values($this->types); |
|
| 52 | } |
||
| 53 | |||
| 55 |