Stellar PHP SDK API Documentation

AccountsResponse extends IteratorIterator

Represents a collection of accounts

This iterable collection holds multiple account responses returned by list endpoints. The collection is typically part of AccountsPageResponse for paginated results and provides iterator functionality to traverse all account entries.

Tags
see
AccountsPageResponse

For paginated account lists

see
AccountResponse

For individual account entries

since
1.0.0

Table of Contents

Methods

__construct()  : mixed
Creates a new collection of accounts
add()  : mixed
Adds an account entry to the collection
count()  : int
Gets the number of account entries in the collection
current()  : AccountResponse
Gets the current account in the iteration
toArray()  : array<string|int, AccountResponse>
Converts the collection to an array

Methods

count()

Gets the number of account entries in the collection

public count() : int
Return values
int

The count of account entries


        
On this page

Search results