Property | Type | Description | |
---|---|---|---|
$body | string | ||
$headers | array | ||
$raw | string | ||
$statusCode | integer |
Method | Description | |
---|---|---|
__construct ( $raw = null ) | ||
__toString ( ) : string | Returns the raw http response | |
createFromRawResponse ( $rawResponse ) | ||
getBody ( ) | ||
getHeaders ( ) | ||
getStatusCode ( ) | ||
setBody ( string $body ) | Set the body of the response | |
setHeader ( string $header, string $value ) | ||
setStatusCode ( $statusCode ) : Bitpay\Client\ResponseInterface |
public __toString ( ) : string | ||
return | string |
public setStatusCode ( $statusCode ) : Bitpay\Client\ResponseInterface | ||
return | Bitpay\Client\ResponseInterface |