1 | <?php declare(strict_types=1); |
||||
2 | |||||
3 | namespace FatCode\OpenApi\Http; |
||||
4 | |||||
5 | use Psr\Http\Message\ResponseInterface; |
||||
6 | use Psr\Http\Message\StreamInterface; |
||||
7 | |||||
8 | class Response implements ResponseInterface |
||||
9 | { |
||||
10 | public function __construct(int $code, $body) |
||||
0 ignored issues
–
show
The parameter
$body is not used and could be removed.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This check looks for parameters that have been defined for a function or method, but which are not used in the method body. ![]() |
|||||
11 | { |
||||
12 | } |
||||
13 | |||||
14 | public function getProtocolVersion() |
||||
15 | { |
||||
16 | // TODO: Implement getProtocolVersion() method. |
||||
17 | } |
||||
18 | |||||
19 | public function withProtocolVersion($version) |
||||
20 | { |
||||
21 | // TODO: Implement withProtocolVersion() method. |
||||
22 | } |
||||
23 | |||||
24 | public function getHeaders() |
||||
25 | { |
||||
26 | // TODO: Implement getHeaders() method. |
||||
27 | } |
||||
28 | |||||
29 | public function hasHeader($name) |
||||
30 | { |
||||
31 | // TODO: Implement hasHeader() method. |
||||
32 | } |
||||
33 | |||||
34 | public function getHeader($name) |
||||
35 | { |
||||
36 | // TODO: Implement getHeader() method. |
||||
37 | } |
||||
38 | |||||
39 | public function getHeaderLine($name) |
||||
40 | { |
||||
41 | // TODO: Implement getHeaderLine() method. |
||||
42 | } |
||||
43 | |||||
44 | public function withHeader($name, $value) |
||||
45 | { |
||||
46 | // TODO: Implement withHeader() method. |
||||
47 | } |
||||
48 | |||||
49 | public function withAddedHeader($name, $value) |
||||
50 | { |
||||
51 | // TODO: Implement withAddedHeader() method. |
||||
52 | } |
||||
53 | |||||
54 | public function withoutHeader($name) |
||||
55 | { |
||||
56 | // TODO: Implement withoutHeader() method. |
||||
57 | } |
||||
58 | |||||
59 | public function getBody() |
||||
60 | { |
||||
61 | // TODO: Implement getBody() method. |
||||
62 | } |
||||
63 | |||||
64 | public function withBody(StreamInterface $body) |
||||
65 | { |
||||
66 | // TODO: Implement withBody() method. |
||||
67 | } |
||||
68 | |||||
69 | public function getStatusCode() |
||||
70 | { |
||||
71 | // TODO: Implement getStatusCode() method. |
||||
72 | } |
||||
73 | |||||
74 | public function withStatus($code, $reasonPhrase = '') |
||||
75 | { |
||||
76 | // TODO: Implement withStatus() method. |
||||
77 | } |
||||
78 | |||||
79 | public function getReasonPhrase() |
||||
80 | { |
||||
81 | // TODO: Implement getReasonPhrase() method. |
||||
82 | } |
||||
83 | |||||
84 | } |
||||
85 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.