for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Stripe;
/**
* Class ApiResponse
*
* @package Stripe
*/
class ApiResponse
{
public $headers;
public $body;
public $json;
public $code;
* @param string $body
* @param integer $code
* @param array|null $headers
* @param array|null $json
* @return obj An APIResponse
@return
Adding a @return annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.
Please refer to the PHP core documentation on constructors.
public function __construct($body, $code, $headers, $json)
$this->body = $body;
$this->code = $code;
$this->headers = $headers;
$this->json = $json;
}
Adding a
@returnannotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.