35 lines
514 B
PHP
35 lines
514 B
PHP
![]() |
<?php
|
||
|
|
||
|
namespace PayPalHttp;
|
||
|
|
||
|
/**
|
||
|
* Class HttpResponse
|
||
|
* @package PayPalHttp
|
||
|
*
|
||
|
* Object that holds your response details
|
||
|
*/
|
||
|
class HttpResponse
|
||
|
{
|
||
|
/**
|
||
|
* @var integer
|
||
|
*/
|
||
|
public $statusCode;
|
||
|
|
||
|
/**
|
||
|
* @var array | string
|
||
|
*/
|
||
|
public $result;
|
||
|
|
||
|
/**
|
||
|
* @var array
|
||
|
*/
|
||
|
public $headers;
|
||
|
|
||
|
public function __construct($statusCode, $body, $headers)
|
||
|
{
|
||
|
$this->statusCode = $statusCode;
|
||
|
$this->headers = $headers;
|
||
|
$this->result = $body;
|
||
|
}
|
||
|
}
|