Total Complexity | 3 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Coverage | 92.31% |
Changes | 5 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
9 | trait LoopFunctions |
||
10 | { |
||
11 | use HelpsLoopFunctions; |
||
12 | |||
13 | /** |
||
14 | * Maps your model attributes to local class properties. |
||
15 | * |
||
16 | * @param Model|null $model |
||
17 | * @param mixed $rescue |
||
18 | * |
||
19 | * @return void |
||
20 | */ |
||
21 | 8 | public function attributesToProperties(?Model $model = null, mixed $rescue = null): void |
|
30 | ) |
||
31 | ); |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * Map array data to class properties. |
||
36 | * |
||
37 | * @param array|null $data |
||
38 | * @param mixed|null $rescue |
||
39 | * |
||
40 | * @return void |
||
41 | */ |
||
42 | 5 | public function arrayToProperties(?array $data, mixed $rescue = null): void |
|
55 |