AdditionalDomains.php
1 year ago
Base.php
8 months ago
Cache.php
1 year ago
ExcludedUrls.php
1 year ago
Excludes.php
1 year ago
Integration.php
1 year ago
RemoteConfigFetcher.php
1 year ago
RequestMaker.php
1 year ago
Response.php
1 year ago
ResponseStatus.php
1 year ago
SafeMode.php
1 year ago
SecureRequestMaker.php
1 year ago
SignedBase.php
1 year ago
Stats.php
1 year ago
Tagger.php
1 year ago
Url.php
1 year ago
VariationCookie.php
1 year ago
Varnish.php
1 year ago
Warmup.php
1 year ago
Webhook.php
1 year 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 |