1 | <?php |
||
7 | class Request implements RequestInterface |
||
8 | { |
||
9 | /** @var string */ |
||
10 | private $method; |
||
11 | |||
12 | /** @var string */ |
||
13 | private $uri; |
||
14 | |||
15 | /** @var array */ |
||
16 | private $headers; |
||
17 | |||
18 | /** @var array */ |
||
19 | private $body; |
||
20 | |||
21 | /** |
||
22 | * @var ResponseFactoryInterface |
||
23 | */ |
||
24 | private $responseFactory; |
||
25 | |||
26 | /** |
||
27 | * Request constructor. |
||
28 | */ |
||
29 | 12 | public function __construct() |
|
35 | |||
36 | /** |
||
37 | * @return string |
||
38 | */ |
||
39 | 12 | public function getMethod() |
|
43 | |||
44 | /** |
||
45 | * @param string $method |
||
46 | */ |
||
47 | public function setMethod($method) |
||
51 | |||
52 | /** |
||
53 | * @return string |
||
54 | */ |
||
55 | 12 | public function getUri() |
|
59 | |||
60 | /** |
||
61 | * @param string $uri |
||
62 | */ |
||
63 | 12 | public function setUri($uri) |
|
67 | |||
68 | /** |
||
69 | * @return array |
||
70 | */ |
||
71 | 12 | public function getHeaders() |
|
75 | |||
76 | /** |
||
77 | * @param $header |
||
78 | * @param $value |
||
79 | */ |
||
80 | 12 | public function addHeader($header, $value) |
|
84 | |||
85 | /** |
||
86 | * @return array |
||
87 | */ |
||
88 | 12 | public function getBody() |
|
92 | |||
93 | /** |
||
94 | * @param array $body |
||
95 | */ |
||
96 | 12 | public function setBody($body) |
|
100 | |||
101 | /** |
||
102 | * @return ResponseFactoryInterface |
||
103 | */ |
||
104 | 12 | public function getResponseFactory() |
|
108 | |||
109 | /** |
||
110 | * @param ResponseFactoryInterface $responseFactory |
||
111 | */ |
||
112 | 12 | public function setResponseFactory(ResponseFactoryInterface $responseFactory) |
|
116 | |||
117 | } |
||
118 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..