| 1 | <?php |
||
| 19 | class ResponseFactory |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var SerializerAdapter |
||
| 23 | */ |
||
| 24 | private $serializer; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var DocumentRepository |
||
| 28 | */ |
||
| 29 | private $documentRepository; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param DocumentRepository $documentRepository |
||
| 33 | * @param SerializerAdapter $serializer |
||
| 34 | */ |
||
| 35 | public function __construct(DocumentRepository $documentRepository, SerializerAdapter $serializer) |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @SuppressWarnings(PHPMD.UnusedFormalParameter) |
||
| 43 | * |
||
| 44 | * @param Request $request |
||
| 45 | * @param mixed $data |
||
| 46 | * |
||
| 47 | * @return Response |
||
| 48 | */ |
||
| 49 | public function createResponse(Request $request, $data) |
||
| 60 | } |
||
| 61 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.