Total Complexity | 8 |
Total Lines | 77 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
9 | class ProcessorResponse implements ResponseInterface |
||
10 | { |
||
11 | /** |
||
12 | * @var array |
||
13 | */ |
||
14 | protected $data; |
||
15 | |||
16 | /** |
||
17 | * @var Request |
||
18 | */ |
||
19 | protected $request; |
||
20 | |||
21 | /** |
||
22 | * @var int |
||
23 | */ |
||
24 | protected $status; |
||
25 | |||
26 | /** |
||
27 | * @var bool |
||
28 | */ |
||
29 | protected $isHttpReady = false; |
||
30 | |||
31 | public function __construct(Request $request, array $data, $httpReady = false, $status = 200) |
||
|
|||
32 | { |
||
33 | $this->request = $request; |
||
34 | $this->data = $data; |
||
35 | $this->isHttpReady = $httpReady; |
||
36 | } |
||
37 | |||
38 | public function toHttpResponse() |
||
44 | } |
||
45 | |||
46 | /** |
||
47 | * @return mixed |
||
48 | */ |
||
49 | public function getData() |
||
50 | { |
||
51 | return $this->data; |
||
52 | } |
||
53 | |||
54 | /** |
||
55 | * @param Request $request |
||
56 | * |
||
57 | * @return Response |
||
58 | */ |
||
59 | private function createResponse(Request $request) |
||
67 | ); |
||
68 | } |
||
69 | |||
70 | /** |
||
71 | * @param string $format |
||
72 | * @return string |
||
73 | */ |
||
74 | private function getContentTypeByFormat($format) |
||
86 | } |
||
87 | } |
||
88 | } |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.