blob: 7d46dd2539896f35c965fbd629f1c3170b4b18a9 (
plain) (
blame)
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
|
<?php
namespace PayPalHttp;
/**
* Class HttpResponse
* @package PayPalHttp
*
* Object that holds your response details
*/
class HttpResponse
{
/**
* @var int
*/
public $statusCode;
/**
* @var array | string | object
*/
public $result;
/**
* @var array
*/
public $headers;
public function __construct($statusCode, $body, $headers)
{
$this->statusCode = $statusCode;
$this->headers = $headers;
$this->result = $body;
}
}
|