| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 48 | public function guessProperties($object, $name, $classes) |
||
| 49 | { |
||
| 50 | $properties = []; |
||
| 51 | |||
| 52 | foreach ($object->getAllOf() as $allOfSchema) { |
||
| 53 | if ($allOfSchema instanceof Reference) { |
||
| 54 | $allOfSchema = $this->resolver->resolve($allOfSchema); |
||
| 55 | } |
||
| 56 | |||
| 57 | $properties = array_merge($properties, $this->chainGuesser->guessProperties($allOfSchema, $name, $classes)); |
||
| 58 | } |
||
| 59 | |||
| 60 | return $properties; |
||
| 61 | } |
||
| 62 | } |
||
| 63 |