Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
27 | protected function transformResponseErrors(ResponseInterface $response, array $data): DynamicModel |
||
28 | { |
||
29 | $errors = call_user_func_array( |
||
30 | new InterpretResponseErrors(), |
||
31 | [ |
||
32 | $data |
||
33 | ] |
||
34 | ); |
||
35 | |||
36 | $model = new DynamicModel(); |
||
37 | $model->addErrors($errors); |
||
38 | |||
39 | return $model; |
||
40 | } |
||
41 | } |
||
42 |