forked from pipedrive/client-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHttpResponse.php
More file actions
72 lines (64 loc) · 1.3 KB
/
HttpResponse.php
File metadata and controls
72 lines (64 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?php
/*
* Pipedrive
*
* This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
*/
namespace Pipedrive\Http;
/**
* Http response received
*/
class HttpResponse
{
/**
* Status code of response
* @var int
*/
private $statusCode = null;
/**
* Headers received
* @var array
*/
private $headers = null;
/**
* Raw body of the response
* @var string
*/
private $rawBody = null;
/**
* Create a new instance of a HttpResponse
* @param int $statusCode Response code
* @param array $headers Map of headers
* @param string $rawBody Raw response body
*/
public function __construct($statusCode, array $headers, $rawBody)
{
$this->statusCode = $statusCode;
$this->headers = $headers;
$this->rawBody = $rawBody;
}
/**
* Get status code
* @return int Status code
*/
public function getStatusCode()
{
return $this->statusCode;
}
/**
* Get headers
* @return array Map of headers
*/
public function getHeaders()
{
return $this->headers;
}
/**
* Get raw response body
* @return string Raw body
*/
public function getRawBody()
{
return $this->rawBody;
}
}