| Conditions | 4 | 
| Paths | 3 | 
| Total Lines | 7 | 
| Code Lines | 3 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 28 |     private function addRelationData($object, $name, $relation, $siblings) { | ||
| 29 |         if (isset($object->$name) && !($object->$name instanceof \Maphper\Relation) ) { | ||
| 30 | //After overwriting the relation, does the parent object ($object) need overwriting as well? | ||
| 31 | if ($relation->overwrite($object, $object->$name)) $this->parent[] = $object; | ||
| 32 | } | ||
| 33 | |||
| 34 | $object->$name = $relation->getData($object, $siblings); | ||
| 35 | } | ||
| 37 |