Base.php
5 years ago
Cache.php
5 years ago
Integration.php
6 years ago
RemoteConfigFetcher.php
6 years ago
RequestMaker.php
5 years ago
Response.php
6 years ago
ResponseStatus.php
6 years ago
SecureRequestMaker.php
5 years ago
SignedBase.php
5 years ago
Stats.php
6 years ago
Tagger.php
6 years ago
Url.php
6 years ago
VariationCookie.php
6 years ago
Warmup.php
6 years ago
Webhook.php
6 years ago
Response.php
27 lines
| 1 | <?php |
| 2 | namespace NitroPack\SDK\Api; |
| 3 | |
| 4 | class Response { |
| 5 | private $status; |
| 6 | private $headers; |
| 7 | private $body; |
| 8 | |
| 9 | public function __construct($status, $body, $headers = array()) { |
| 10 | $this->status = $status; |
| 11 | $this->headers = $headers; |
| 12 | $this->body = $body; |
| 13 | } |
| 14 | |
| 15 | public function getStatus() { |
| 16 | return $this->status; |
| 17 | } |
| 18 | |
| 19 | public function getBody() { |
| 20 | return $this->body; |
| 21 | } |
| 22 | |
| 23 | public function getHeaders() { |
| 24 | return $this->headers; |
| 25 | } |
| 26 | } |
| 27 |