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