| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | public function transferToRecord(BaseModel $model, Record $record, bool $mirrorScenario = true) |
||
| 40 | { |
||
| 41 | |||
| 42 | if ($mirrorScenario === true) { |
||
| 43 | // Mirror scenarios |
||
| 44 | $record->setScenario($model->getScenario()); |
||
| 45 | } |
||
| 46 | |||
| 47 | // Transfer attributes |
||
| 48 | $record->setAttributes($model->toArray()); |
||
| 49 | } |
||
| 50 | |||
| 70 |