Total Complexity | 2 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | final class ApiResponseFormatter implements DataResponseFormatterInterface |
||
14 | { |
||
15 | private ApiResponseDataFactory $apiResponseDataFactory; |
||
16 | private JsonDataResponseFormatter $jsonDataResponseFormatter; |
||
17 | |||
18 | 11 | public function __construct( |
|
19 | ApiResponseDataFactory $apiResponseDataFactory, |
||
20 | JsonDataResponseFormatter $jsonDataResponseFormatter |
||
21 | ) { |
||
22 | 11 | $this->apiResponseDataFactory = $apiResponseDataFactory; |
|
23 | 11 | $this->jsonDataResponseFormatter = $jsonDataResponseFormatter; |
|
24 | 11 | } |
|
25 | |||
26 | 11 | public function format(DataResponse $dataResponse): ResponseInterface |
|
33 | } |
||
34 | } |
||
35 |