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