| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | public function create(DataReaderInterface $dataReader): ResponseInterface |
||
| 19 | { |
||
| 20 | $response = []; |
||
| 21 | foreach ($dataReader->read() as $user) { |
||
| 22 | $response[] = new Response( |
||
| 23 | $user->getLogin(), |
||
| 24 | $user->getCreatedAt()->format(\DateTimeImmutable::ATOM) |
||
| 25 | ); |
||
| 26 | } |
||
| 27 | |||
| 28 | return $this->responseFactory->createResponse([ |
||
| 29 | 'users' => $response, |
||
| 30 | ]); |
||
| 33 |