Total Complexity | 2 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | class GraphQLAction implements MiddlewareInterface |
||
15 | { |
||
16 | /** |
||
17 | * @var Server |
||
18 | */ |
||
19 | private $server; |
||
20 | |||
21 | public function __construct(Server $server) |
||
22 | { |
||
23 | $this->server = $server; |
||
24 | } |
||
25 | |||
26 | /** |
||
27 | * Process an incoming server request and return a response, optionally delegating |
||
28 | * to the next middleware component to create the response. |
||
29 | * |
||
30 | * @param ServerRequestInterface $request |
||
31 | * @param RequestHandlerInterface $handler |
||
32 | * |
||
33 | * @return ResponseInterface |
||
34 | */ |
||
35 | public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
||
40 | } |
||
41 | } |
||
42 |