| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 36 | 2 | public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
|
| 37 | { |
||
| 38 | 2 | $collection = $this->historyRepository->matching((new CriteriaBuilder())($request->getQueryParams())); |
|
| 39 | |||
| 40 | 2 | $results = (new ListExtractor())($this->hydrator, $collection->toArray()); |
|
| 41 | 2 | $count = count($results); |
|
| 42 | |||
| 43 | 2 | return (new GeneralSuccessResponseFactory())('Success', 'history', $results, 200, $count); |
|
| 44 | } |
||
| 45 | } |
||
| 46 |