1 | <?php |
||
7 | class DropboxRawResponse |
||
8 | { |
||
9 | /** |
||
10 | * Response headers |
||
11 | * |
||
12 | * @var array |
||
13 | */ |
||
14 | protected $headers; |
||
15 | |||
16 | /** |
||
17 | * Raw response body |
||
18 | * |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $body; |
||
22 | |||
23 | /** |
||
24 | * HTTP status response code |
||
25 | * |
||
26 | * @var int |
||
27 | */ |
||
28 | protected $httpResponseCode; |
||
29 | |||
30 | /** |
||
31 | * Create a new GraphRawResponse instance |
||
32 | * |
||
33 | * @param array $headers Response headers |
||
34 | * @param string $body Raw response body |
||
35 | * @param int|null $statusCode HTTP response code |
||
36 | */ |
||
37 | 48 | public function __construct($headers, $body, $statusCode = null) |
|
45 | |||
46 | /** |
||
47 | * Get the response headers |
||
48 | * |
||
49 | * @return array |
||
50 | */ |
||
51 | 48 | public function getHeaders() |
|
55 | |||
56 | /** |
||
57 | * Get the response body |
||
58 | * |
||
59 | * @return string |
||
60 | */ |
||
61 | 47 | public function getBody() |
|
65 | |||
66 | /** |
||
67 | * Get the HTTP response code |
||
68 | * |
||
69 | * @return int |
||
70 | */ |
||
71 | 48 | public function getHttpResponseCode() |
|
75 | } |
||
76 |