Creates a EventResponseInterface object, which is used to send back to the front-end software during a RPC call. This is the response created and returned by the RPC listeners.
Constructor. Get the EventMessageInterface, and set necessary properties.
The message that was dispatched.
Import properties. Used by event_response object to initialize.
The message that we're creaitng a response for.
add_response(string $package,string $class_name,string $method, $response)
Add a response
One RPC call can call methods without mltiple packages. This method is called after the RPC call is executed against any package, and adds the response from the package into the overall response object.
The package the response came from
The class name that was executed
The method name that was executed
get_response(string $package = ''): mixed
Get contents of the response, either a specific package, or all packages combined in an array.
Optional package alias to return response of. If blank, returns array of all responses from all packages.
Either response from a specific package if defined, or all responses.