| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 42 | public function extract(EntityInterface $entity) |
||
| 43 | { |
||
| 44 | $data = Arr::renameKeys( |
||
| 45 | $entity->getArrayCopy(), |
||
| 46 | array_flip($this->mapper->getColumnAttributeMap()) |
||
| 47 | ); |
||
| 48 | $data = $this->castingManager |
||
| 49 | ->castArrayForDb($data, $this->mapper->getCasts()); |
||
| 50 | |||
| 51 | return Arr::only($data, $this->mapper->getColumns()); |
||
| 52 | } |
||
| 64 |