ResponseDataTrait
The ResponseDataTrait provides a trait for handling JSON response data.
This trait defines a method for handling a JSON response object.
Table of Contents
Properties
- $response : object
- The response object.
Methods
- handle() : self
- Handle the JSON response object.
Properties
$response read-only
The response object.
private
object
$response
Methods
handle()
Handle the JSON response object.
public
handle(object $response) : self
Parameters
- $response : object
-
The JSON response object.
Return values
self —The instance of the class.