| Conditions | 4 | 
| Paths | 4 | 
| Total Lines | 17 | 
| Code Lines | 9 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 6 | ||
| Bugs | 1 | Features | 1 | 
| 1 | <?php  | 
            ||
| 48 | public function transform($object, $targetClass)  | 
            ||
| 49 |     { | 
            ||
| 50 |         if (count($object) == 0) { | 
            ||
| 51 | return [];  | 
            ||
| 52 | }  | 
            ||
| 53 | |||
| 54 |         if (!$this->supports($object, $targetClass)) { | 
            ||
| 55 | throw new UnsupportedTransformationException();  | 
            ||
| 56 | }  | 
            ||
| 57 | |||
| 58 | $elements = [];  | 
            ||
| 59 |         foreach ($object as $element) { | 
            ||
| 60 | $elements[] = $this->modelTransformer->transform($element, $targetClass);  | 
            ||
| 61 | }  | 
            ||
| 62 | |||
| 63 | return $elements;  | 
            ||
| 64 | }  | 
            ||
| 65 | }  | 
            ||
| 66 |