Stellar PHP SDK API Documentation

OperationsResponse extends IteratorIterator

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

count()

Gets the number of operations in the collection

public count() : int
Return values
int

The operation count


        
On this page

Search results