Conditions | 1 |
Paths | 1 |
Total Lines | 4 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | 1 | public static function createFromPrevious(JsonResponse $jsonResponse, array $data) { |
|
17 | 1 | $profiling = new ProfilingJsonResponse($jsonResponse->data, $jsonResponse->success, $jsonResponse->total, $jsonResponse->pages, $jsonResponse->message); |
|
18 | 1 | $profiling->setProfile($data); |
|
19 | 1 | return $profiling; |
|
20 | } |
||
21 | } |