Stellar PHP SDK API Documentation

AssetsResponse extends IteratorIterator

Iterable collection of asset responses

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

Tags
see
AssetResponse

For individual asset details

since
1.0.0

Table of Contents

Methods

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

Methods

count()

Gets the total number of assets in the collection

public count() : int
Return values
int

The count of assets


        
On this page

Search results