ConverterInterface.php
18 lines
| 1 | <?php |
| 2 | |
| 3 | namespace CoreInterfaces\Sdk; |
| 4 | |
| 5 | use CoreInterfaces\Core\ContextInterface; |
| 6 | use CoreInterfaces\Core\Request\RequestInterface; |
| 7 | use CoreInterfaces\Core\Response\ResponseInterface; |
| 8 | |
| 9 | interface ConverterInterface |
| 10 | { |
| 11 | public function createApiException(string $message, RequestInterface $request, ?ResponseInterface $response); |
| 12 | public function createHttpContext(ContextInterface $context); |
| 13 | public function createHttpRequest(RequestInterface $request); |
| 14 | public function createHttpResponse(ResponseInterface $response); |
| 15 | public function createApiResponse(ContextInterface $context, $deserializedBody); |
| 16 | public function createFileWrapper(string $realFilePath, ?string $mimeType, ?string $filename); |
| 17 | } |
| 18 |