| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 8 | 
| Code Lines | 5 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 1 | 
| 1 | <?php | ||
| 32 | public function hydrate(array $attributes = []) | ||
| 33 |     { | ||
| 34 | $attributes = $this->castingManager | ||
| 35 | ->castArray($attributes, $this->mapper->getCasts()); | ||
| 36 | $attributes = Arr::renameKeys($attributes, $this->mapper->getColumnAttributeMap()); | ||
| 37 | $class = $this->mapper->getEntityClass() ?? GenericEntity::class; | ||
| 38 | |||
| 39 | return new $class($attributes, $this->castingManager); | ||
| 40 | } | ||
| 54 |