PHP Class Bitpay\Client\Response

Inheritance: implements Bitpay\Client\ResponseInterface
Afficher le fichier Open project: bitpay/php-client Class Usage Examples

Protected Properties

Свойство Type Description
$body string
$headers array
$raw string
$statusCode integer

Méthodes publiques

Méthode 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

Method Details

__construct() public méthode

public __construct ( $raw = null )

__toString() public méthode

Returns the raw http response
public __toString ( ) : string
Résultat string

createFromRawResponse() public static méthode

public static createFromRawResponse ( $rawResponse )

getBody() public méthode

public getBody ( )

getHeaders() public méthode

public getHeaders ( )

getStatusCode() public méthode

public getStatusCode ( )

setBody() public méthode

Set the body of the response
public setBody ( string $body )
$body string

setHeader() public méthode

public setHeader ( string $header, string $value )
$header string
$value string

setStatusCode() public méthode

public setStatusCode ( $statusCode ) : Bitpay\Client\ResponseInterface
Résultat Bitpay\Client\ResponseInterface

Property Details

$body protected_oe property

protected string $body
Résultat string

$headers protected_oe property

protected array $headers
Résultat array

$raw protected_oe property

protected string $raw
Résultat string

$statusCode protected_oe property

protected int $statusCode
Résultat integer