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

46 lines
712 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
/**
2021-01-03 23:37:44 +01:00
* Class ApiResponse.
2017-04-18 05:44:08 +02:00
*/
class ApiResponse
{
2021-01-03 23:37:44 +01:00
/**
* @var null|array|CaseInsensitiveArray
*/
2017-04-18 05:44:08 +02:00
public $headers;
2021-01-03 23:37:44 +01:00
/**
* @var string
*/
2017-04-18 05:44:08 +02:00
public $body;
2021-01-03 23:37:44 +01:00
/**
* @var null|array
*/
2017-04-18 05:44:08 +02:00
public $json;
2021-01-03 23:37:44 +01:00
/**
* @var int
*/
2017-04-18 05:44:08 +02:00
public $code;
/**
* @param string $body
2021-01-03 23:37:44 +01:00
* @param int $code
* @param null|array|CaseInsensitiveArray $headers
* @param null|array $json
2017-04-18 05:44:08 +02:00
*/
public function __construct($body, $code, $headers, $json)
{
$this->body = $body;
$this->code = $code;
$this->headers = $headers;
$this->json = $json;
}
}