AssetBalanceChangesResponse
extends IteratorIterator
in package
Collection of asset balance changes from a Soroban contract invocation
Provides an iterable collection of AssetBalanceChangeResponse objects representing all asset balance changes that occurred during smart contract execution. Supports iteration, counting, and conversion to array.
Table of Contents
Methods
- __construct() : mixed
- add() : void
- Adds an asset balance change to the collection
- count() : int
- Gets the number of balance changes in the collection
- current() : AssetBalanceChangeResponse
- toArray() : array<string|int, AssetBalanceChangeResponse>
Methods
__construct()
public
__construct(AssetBalanceChangeResponse ...$responses) : mixed
Parameters
- $responses : AssetBalanceChangeResponse
add()
Adds an asset balance change to the collection
public
add(AssetBalanceChangeResponse $response) : void
Parameters
- $response : AssetBalanceChangeResponse
-
The balance change response to add
count()
Gets the number of balance changes in the collection
public
count() : int
Return values
int —The balance change count
current()
public
current() : AssetBalanceChangeResponse
Return values
AssetBalanceChangeResponsetoArray()
public
toArray() : array<string|int, AssetBalanceChangeResponse>