ParametersResponse
extends IteratorIterator
in package
Collection of Soroban contract function parameters
Provides an iterable collection of ParameterResponse objects representing all parameters passed to a smart contract function. Supports iteration, counting, and conversion to array. Used in InvokeHostFunctionOperationResponse to represent function arguments.
Table of Contents
Methods
- __construct() : mixed
- add() : void
- Adds a parameter to the collection
- count() : int
- Gets the number of parameters in the collection
- current() : ParameterResponse
- toArray() : array<string|int, ParameterResponse>
Methods
__construct()
public
__construct(ParameterResponse ...$responses) : mixed
Parameters
- $responses : ParameterResponse
add()
Adds a parameter to the collection
public
add(ParameterResponse $response) : void
Parameters
- $response : ParameterResponse
-
The parameter response to add
count()
Gets the number of parameters in the collection
public
count() : int
Return values
int —The parameter count
current()
public
current() : ParameterResponse
Return values
ParameterResponsetoArray()
public
toArray() : array<string|int, ParameterResponse>