1 | <?php |
||
33 | class XmlrpcepiphpResponse extends Response |
||
34 | { |
||
35 | /** |
||
36 | * @var array The content to send back with this response. |
||
37 | */ |
||
38 | protected $content = array(); |
||
39 | |||
40 | /** |
||
41 | * Check whether or not some content is set. |
||
42 | * |
||
43 | * @return bool If any content is set, false otherwise. |
||
44 | * |
||
45 | * @author David Zülke <[email protected]> |
||
46 | * @since 0.11.6 |
||
47 | */ |
||
48 | public function hasContent() |
||
52 | |||
53 | /** |
||
54 | * Set the content for this Response. |
||
55 | * |
||
56 | * @see Response::setContent() |
||
57 | * |
||
58 | * @param array $content The content to be sent in this Response. |
||
59 | * |
||
60 | * @return bool Whether or not the operation was successful. |
||
61 | * |
||
62 | * @author David Zülke <[email protected]> |
||
63 | * @since 0.11.0 |
||
64 | */ |
||
65 | public function setContent($content) |
||
69 | |||
70 | /** |
||
71 | * Prepend content to the existing content for this Response. |
||
72 | * |
||
73 | * @param array $content The content to be prepended to this Response. |
||
74 | * |
||
75 | * @return bool Whether or not the operation was successful. |
||
76 | * |
||
77 | * @author David Zülke <[email protected]> |
||
78 | * @since 0.11.0 |
||
79 | */ |
||
80 | public function prependContent($content) |
||
84 | |||
85 | /** |
||
86 | * Append content to the existing content for this Response. |
||
87 | * |
||
88 | * @param array $content The content to be appended to this Response. |
||
89 | * |
||
90 | * @return bool Whether or not the operation was successful. |
||
91 | * |
||
92 | * @author David Zülke <[email protected]> |
||
93 | * @since 0.11.0 |
||
94 | */ |
||
95 | public function appendContent($content) |
||
99 | |||
100 | /** |
||
101 | * Import response metadata (nothing in this case) from another response. |
||
102 | * |
||
103 | * @param Response $otherResponse The other response to import information from. |
||
104 | * |
||
105 | * @author David Zülke <[email protected]> |
||
106 | * @since 0.11.0 |
||
107 | */ |
||
108 | public function merge(Response $otherResponse) |
||
112 | |||
113 | /** |
||
114 | * Redirect externally. Not implemented here. |
||
115 | * |
||
116 | * @param mixed $to Where to redirect. |
||
117 | * |
||
118 | * @throws \BadMethodCallException |
||
119 | * |
||
120 | * @author David Zülke <[email protected]> |
||
121 | * @since 0.11.0 |
||
122 | */ |
||
123 | public function setRedirect($to) |
||
127 | |||
128 | /** |
||
129 | * Get info about the set redirect. Not implemented here. |
||
130 | * |
||
131 | * @throws \BadMethodCallException |
||
132 | * |
||
133 | * @author David Zülke <[email protected]> |
||
134 | * @since 0.11.0 |
||
135 | */ |
||
136 | public function getRedirect() |
||
140 | |||
141 | /** |
||
142 | * Check if a redirect is set. Not implemented here. |
||
143 | * |
||
144 | * @return bool true, if a redirect is set, otherwise false |
||
145 | * |
||
146 | * @throws \BadMethodCallException |
||
147 | * |
||
148 | * @author David Zülke <[email protected]> |
||
149 | * @since 0.11.0 |
||
150 | */ |
||
151 | public function hasRedirect() |
||
155 | |||
156 | /** |
||
157 | * Clear any set redirect information. Not implemented here. |
||
158 | * |
||
159 | * @throws \BadMethodCallException |
||
160 | * |
||
161 | * @author David Zülke <[email protected]> |
||
162 | * @since 0.11.0 |
||
163 | */ |
||
164 | public function clearRedirect() |
||
168 | |||
169 | /** |
||
170 | * @see Response::isMutable() |
||
171 | * |
||
172 | * @author David Zülke <[email protected]> |
||
173 | * @since 0.11.0 |
||
174 | */ |
||
175 | public function isContentMutable() |
||
179 | |||
180 | /** |
||
181 | * Clear the content for this Response |
||
182 | * |
||
183 | * @return bool Whether or not the operation was successful. |
||
184 | * |
||
185 | * @author David Zülke <[email protected]> |
||
186 | * @since 0.11.0 |
||
187 | */ |
||
188 | public function clearContent() |
||
193 | |||
194 | /** |
||
195 | * Send all response data to the client. |
||
196 | * |
||
197 | * @author David Zülke <[email protected]> |
||
198 | * @since 0.11.0 |
||
199 | */ |
||
200 | public function send(OutputType $outputType = null) |
||
216 | |||
217 | /** |
||
218 | * Clear all response data. |
||
219 | * |
||
220 | * @author David Zülke <[email protected]> |
||
221 | * @since 0.11.0 |
||
222 | */ |
||
223 | public function clear() |
||
229 | } |
||
230 |
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..