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