Issues (40)

src/Service/ResponseRenderServiceInterface.php (1 issue)

Labels
Severity
1
<?php
2
declare(strict_types = 1);
3
4
namespace Phauthentic\Presentation\Service;
5
6
use Phauthentic\Presentation\View\ViewInterface;
7
use Psr\Http\Message\ResponseInterface;
8
use Psr\Http\Message\ServerRequestInterface;
9
10
/**
11
 * Response Render Service Interface
12
 */
13
interface ResponseRenderServiceInterface
14
{
15
    /**
16
     * Renders the output to the response object
17
     *
18
     * @param \Psr\Http\Message\ResponseInterface $response Response object
19
     * @param \Phauthentic\Presentation\View\ViewInterface $view View DTO
20
     * @param string $outputType Output format
21
     * @return \Psr\Http\Message\ResponseInterface
22
     */
23
    public function renderToResponse(ResponseInterface $response, ViewInterface $view, ?string $outputType): ResponseInterface;
24
25
    /**
26
     * Gets a list of mime types the client accepts from the request
27
     *
28
     * @param \Psr\Http\Message\ServerRequestInterface $request Server Request Object
29
     * @return A list of mime types the client accepts
0 ignored issues
show
The type Phauthentic\Presentation\Service\A was not found. Did you mean A? If so, make sure to prefix the type with \.
Loading history...
30
     */
31
    public function getMimeTypesFromRequest(ServerRequestInterface $request): array;
32
}
33