| Total Complexity | 2 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | final class ResponseBuilder implements ResponseBuilderInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @return array{error: array{message: string, code: int, id: string}} |
||
| 14 | */ |
||
| 15 | 1 | public function buildErrorResponse( |
|
| 24 | ] |
||
| 25 | ]; |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param array<mixed, mixed> $data |
||
| 30 | * |
||
| 31 | * @return array{data: array<mixed, mixed>} |
||
| 32 | */ |
||
| 33 | public function buildResponse(array $data): array |
||
| 40 |