| 1 | <?php |
||
| 5 | class Response |
||
| 6 | { |
||
| 7 | private $headers; |
||
| 8 | |||
| 9 | private $body; |
||
| 10 | |||
| 11 | private $error; |
||
| 12 | |||
| 13 | public function __construct($headers, $body, $error) |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @return mixed |
||
| 24 | */ |
||
| 25 | public function getHeaders() |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @return mixed |
||
| 32 | */ |
||
| 33 | public function getBody() |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @return bool |
||
| 40 | */ |
||
| 41 | public function hasBody() |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @return mixed |
||
| 48 | */ |
||
| 49 | public function getError() |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @return null|int |
||
| 56 | */ |
||
| 57 | public function getHttpResponseCode() |
||
| 65 | } |
||
| 66 |