OperationsResponse
extends IteratorIterator
in package
Collection of operation responses from Horizon API
Provides an iterable collection of OperationResponse objects. Supports iteration through operations, adding new operations to the collection, counting operations, and converting the collection to an array. Used within OperationsPageResponse for paginated results.
Table of Contents
Methods
- __construct() : mixed
- add() : void
- Adds an operation to the collection
- count() : int
- Gets the number of operations in the collection
- current() : OperationResponse
- toArray() : array<string|int, OperationResponse>
Methods
__construct()
public
__construct(OperationResponse ...$responses) : mixed
Parameters
- $responses : OperationResponse
add()
Adds an operation to the collection
public
add(OperationResponse $response) : void
Parameters
- $response : OperationResponse
-
The operation response to add
count()
Gets the number of operations in the collection
public
count() : int
Return values
int —The operation count
current()
public
current() : OperationResponse
Return values
OperationResponsetoArray()
public
toArray() : array<string|int, OperationResponse>