Stellar PHP SDK API Documentation

LedgersResponse extends IteratorIterator

Iterable collection of ledger responses

Provides iterator functionality for traversing multiple LedgerResponse objects. Supports adding ledgers, counting, and converting to array.

Tags
see
LedgerResponse

For individual ledger details

since
1.0.0

Table of Contents

Methods

__construct()  : mixed
Constructs a ledgers collection
add()  : void
Adds a ledger to the collection
count()  : int
Gets the total number of ledgers in the collection
current()  : LedgerResponse
Gets the current ledger in the iteration
toArray()  : array<string|int, LedgerResponse>
Converts the collection to an array

Methods

count()

Gets the total number of ledgers in the collection

public count() : int
Return values
int

The count of ledgers


        
On this page

Search results