SorobanRpcResponse
in package
AbstractYes
Abstract class for soroban rpc responses.
Table of Contents
Properties
- $error : SorobanRpcErrorResponse|null
- $jsonResponse : array<string|int, mixed>
Methods
- __construct() : mixed
- getError() : SorobanRpcErrorResponse|null
- getJsonResponse() : array<string|int, mixed>
- setError() : void
- setJsonResponse() : void
Properties
$error
public
SorobanRpcErrorResponse|null
$error
= null
Error data if the response is an error response
$jsonResponse
public
array<string|int, mixed>
$jsonResponse
Methods
__construct()
public
__construct(array<string|int, mixed> $jsonResponse) : mixed
Parameters
- $jsonResponse : array<string|int, mixed>
-
The complete JSON response as data array
getError()
public
getError() : SorobanRpcErrorResponse|null
Return values
SorobanRpcErrorResponse|null —Error data if the response is an error response
getJsonResponse()
public
getJsonResponse() : array<string|int, mixed>
Return values
array<string|int, mixed> —The complete JSON response as data array
setError()
public
setError(SorobanRpcErrorResponse|null $error) : void
Parameters
- $error : SorobanRpcErrorResponse|null
-
Error data if the response is an error response
setJsonResponse()
public
setJsonResponse(array<string|int, mixed> $jsonResponse) : void
Parameters
- $jsonResponse : array<string|int, mixed>
-
The complete JSON response as data array