Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
30 | public function extract(AnnotationInterface $annotation, ResourceInterface $object, array $json): array |
||
31 | { |
||
32 | if (!($annotation instanceof Nested)) { |
||
33 | return $json; |
||
34 | } |
||
35 | |||
36 | foreach ($annotation->properties() as $property) { |
||
37 | $json[$property] = $this->getHydrator()->extract($annotation->get($property), $json[$property]); |
||
38 | } |
||
39 | |||
40 | return $json; |
||
41 | } |
||
42 | } |
||
43 |