Serializer
5 years ago
Curl.php
5 years ago
Encoder.php
4 years ago
Environment.php
5 years ago
HttpClient.php
4 years ago
HttpException.php
4 years ago
HttpRequest.php
5 years ago
HttpResponse.php
4 years ago
IOException.php
5 years ago
Injector.php
4 years ago
Serializer.php
5 years ago
HttpResponse.php
35 lines
| 1 | <?php |
| 2 | |
| 3 | namespace PayPalHttp; |
| 4 | |
| 5 | /** |
| 6 | * Class HttpResponse |
| 7 | * @package PayPalHttp |
| 8 | * |
| 9 | * Object that holds your response details |
| 10 | */ |
| 11 | class HttpResponse |
| 12 | { |
| 13 | /** |
| 14 | * @var int |
| 15 | */ |
| 16 | public $statusCode; |
| 17 | |
| 18 | /** |
| 19 | * @var array | string | object |
| 20 | */ |
| 21 | public $result; |
| 22 | |
| 23 | /** |
| 24 | * @var array |
| 25 | */ |
| 26 | public $headers; |
| 27 | |
| 28 | public function __construct($statusCode, $body, $headers) |
| 29 | { |
| 30 | $this->statusCode = $statusCode; |
| 31 | $this->headers = $headers; |
| 32 | $this->result = $body; |
| 33 | } |
| 34 | } |
| 35 |