ClaimableBalancesResponse
extends IteratorIterator
in package
Iterable collection of claimable balance responses
Provides iterator functionality for traversing multiple ClaimableBalanceResponse objects. Supports adding claimable balances, counting, and converting to array.
Tags
Table of Contents
Methods
- __construct() : mixed
- Constructs a claimable balances collection
- add() : void
- Adds a claimable balance to the collection
- count() : int
- Gets the total number of claimable balances in the collection
- current() : ClaimableBalanceResponse
- Gets the current claimable balance in the iteration
- toArray() : array<string|int, ClaimableBalanceResponse>
- Converts the collection to an array
Methods
__construct()
Constructs a claimable balances collection
public
__construct(ClaimableBalanceResponse ...$response) : mixed
Parameters
- $response : ClaimableBalanceResponse
-
Variable number of claimable balance responses
add()
Adds a claimable balance to the collection
public
add(ClaimableBalanceResponse $response) : void
Parameters
- $response : ClaimableBalanceResponse
-
The claimable balance to add
count()
Gets the total number of claimable balances in the collection
public
count() : int
Return values
int —The count of claimable balances
current()
Gets the current claimable balance in the iteration
public
current() : ClaimableBalanceResponse
Return values
ClaimableBalanceResponse —The current claimable balance
toArray()
Converts the collection to an array
public
toArray() : array<string|int, ClaimableBalanceResponse>
Return values
array<string|int, ClaimableBalanceResponse> —Array of claimable balance responses