Total Complexity | 3 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | final class JsonSerializeResponseHandler extends AbstractLazyResponseHandler |
||
16 | { |
||
17 | 4 | public function __construct(private SerializerInterface $serializer) |
|
19 | 4 | } |
|
20 | |||
21 | /** |
||
22 | * @param JsonSerializeResponse $controllerResult |
||
23 | * |
||
24 | * @psalm-suppress MoreSpecificImplementedParamType |
||
25 | */ |
||
26 | 3 | protected function generateResponse(LazyResponseInterface $controllerResult): Response |
|
33 | ); |
||
34 | } |
||
35 | |||
36 | 3 | protected function isSupported(LazyResponseInterface $controllerResult): bool |
|
41 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.