ApiResponse.php 549 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace Stripe;
  3. /**
  4. * Class ApiResponse
  5. *
  6. * @package Stripe
  7. */
  8. class ApiResponse
  9. {
  10. public $headers;
  11. public $body;
  12. public $json;
  13. public $code;
  14. /**
  15. * @param string $body
  16. * @param integer $code
  17. * @param array|null $headers
  18. * @param array|null $json
  19. *
  20. * @return obj An APIResponse
  21. */
  22. public function __construct($body, $code, $headers, $json)
  23. {
  24. $this->body = $body;
  25. $this->code = $code;
  26. $this->headers = $headers;
  27. $this->json = $json;
  28. }
  29. }