1 | <?php |
||
10 | class Response extends AbstractResponse |
||
11 | { |
||
12 | |||
13 | private $responseObject; // the serializeable response object |
||
14 | private $statusCode; // the http response code |
||
15 | |||
16 | /** |
||
17 | * Returns the serializeable response object. |
||
18 | * @return mixed The serializeable response object. |
||
19 | */ |
||
20 | 23 | public function getResponseObject() |
|
24 | |||
25 | /** |
||
26 | * Sets the serializeable response object. |
||
27 | * @param mixed $responseObject The serializeable response object. |
||
28 | * @return ResponseInterface Returns $this. |
||
29 | */ |
||
30 | 23 | public function setResponseObject($responseObject) |
|
35 | |||
36 | /** |
||
37 | * Returns the HTTP status code associated with this response. |
||
38 | * @return integer The HTTP status code associated with this response. |
||
39 | */ |
||
40 | 8 | public function getStatusCode() |
|
44 | |||
45 | /** |
||
46 | * Sets the HTTP status code associated with this response. |
||
47 | * @param int $statusCode The HTTP status code associated with this response. |
||
48 | * @return ResponseInterface Returns $this. |
||
49 | */ |
||
50 | 23 | public function setStatusCode($statusCode) |
|
56 | } |
||
57 |