dolibarr/htdocs/includes/stripe/stripe-php/lib/ApiResponse.php

35 lines
609 B
PHP
Raw Normal View History

2017-04-18 05:44:08 +02:00
<?php
namespace Stripe;
2020-03-13 03:07:28 +01:00
use Stripe\Util\CaseInsensitiveArray;
2017-04-18 05:44:08 +02:00
/**
* Class ApiResponse
*
* @package Stripe
*/
class ApiResponse
{
public $headers;
public $body;
public $json;
public $code;
/**
* @param string $body
* @param integer $code
2020-03-13 03:07:28 +01:00
* @param array|CaseInsensitiveArray|null $headers
2017-04-18 05:44:08 +02:00
* @param array|null $json
*
* @return obj An APIResponse
*/
public function __construct($body, $code, $headers, $json)
{
$this->body = $body;
$this->code = $code;
$this->headers = $headers;
$this->json = $json;
}
}