\App\Api\ResponseResponseInterface

API response interface. Its getAs.

. functions produce the final result to be returned by the API.

Summary

Methods
Constants
getName()
toArray()
toJson()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

getName()

getName() : string

Name of this response

Returns

string

toArray()

toArray() : array

Return the data as an array

Returns

array

toJson()

toJson(integer  $options) : string

Return the data as a JSON string

Parameters

integer $options

json_encode options

Returns

string