| Conditions | 4 | 
| Paths | 3 | 
| Total Lines | 10 | 
| Code Lines | 4 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 4 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 30 | public function supports($object, $targetClass)  | 
            ||
| 31 |     { | 
            ||
| 32 |         if (!(is_array($object) || $object instanceof \Traversable)) { | 
            ||
| 33 | return false;  | 
            ||
| 34 | }  | 
            ||
| 35 | |||
| 36 | // if at least one object supported in homogeneous collection  | 
            ||
| 37 | // it is assumed that all other objects are supported  | 
            ||
| 38 | return ((count($object) == 0) || $this->modelTransformer->supports(reset($object), $targetClass));  | 
            ||
| 39 | }  | 
            ||
| 40 | |||
| 67 |