\Revel\ApiResponse

Summary

Methods
Properties
Constants
__construct()
raw()
status()
data()
meta()
objects()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$_response
$_body
N/A

Properties

$_response

$_response : \Psr\Http\Message\ResponseInterface

Type

\Psr\Http\Message\ResponseInterface

$_body

$_body : mixed

Type

mixed

Methods

__construct()

__construct(\Psr\Http\Message\ResponseInterface  $response) 

Response constructor.

Parameters

\Psr\Http\Message\ResponseInterface $response

The response generated by Guzzle that this instance wraps.

raw()

raw() : \Psr\Http\Message\ResponseInterface

The raw Guzzle response.

Returns

\Psr\Http\Message\ResponseInterface

status()

status() : integer

Returns the status code associated with this response.

Returns

integer

data()

data() : mixed

Returns the JSON-decoded data from the body of this response.

Returns

mixed

meta()

meta() : mixed

Returns

mixed

objects()

objects() : array

Returns

array