| Conditions | 3 | 
| Paths | 1 | 
| Total Lines | 10 | 
| Code Lines | 6 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 2 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 48 | public function resolve()  | 
            ||
| 49 |     { | 
            ||
| 50 |         return array_reduce(explode('.', $this->path), function ($resolved, $relation) { | 
            ||
| 51 |             if (!$resolved instanceof Model || in_array($relation, $resolved->getHidden())) { | 
            ||
| 52 | throw new InvalidRelationPathException($this->path);  | 
            ||
| 53 | }  | 
            ||
| 54 | |||
| 55 |             return $resolved->{$relation}; | 
            ||
| 56 | }, $this->record);  | 
            ||
| 57 | }  | 
            ||
| 58 | }  | 
            ||
| 59 |