\App\Api\ResponseCompositeResponse

API Response that is able to combine multiple Responses into one.

Summary

Methods
Properties
Constants
__construct()
getName()
toArray()
toJson()
No public properties found
No constants found
No protected methods found
$responses
N/A
No private methods found
No private properties found
N/A

Properties

Methods

__construct()

__construct(array<mixed,\App\Api\Response\Response>  $responses) 

Parameters

array<mixed,\App\Api\Response\Response> $responses

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