| Total Complexity | 6 |
| Total Lines | 49 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | trait WithLoopFunctions |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Maps your model attributes to local class properties. |
||
| 13 | * |
||
| 14 | * @param Model|null $model |
||
| 15 | * @param mixed $rescue |
||
| 16 | * |
||
| 17 | * @return void |
||
| 18 | */ |
||
| 19 | 8 | public function attributesToProperties(?Model $model = null, mixed $rescue = null): void |
|
| 36 | ); |
||
| 37 | } |
||
| 38 | 8 | }); |
|
| 39 | } |
||
| 40 | 8 | } |
|
| 41 | |||
| 42 | /** |
||
| 43 | * Map array data to class properties. |
||
| 44 | * |
||
| 45 | * @param array|null $data |
||
| 46 | * @param mixed|null $rescue |
||
| 47 | * |
||
| 48 | * @return void |
||
| 49 | */ |
||
| 50 | 1 | public function arrayToProperties(?array $data, mixed $rescue = null): void |
|
| 63 |