Stellar PHP SDK API Documentation

Currencies extends IteratorIterator
in package

Collection of Currency objects from the stellar.toml file.

Provides an iterable collection for managing multiple currency entries from the [[CURRENCIES]] section of the stellar.toml file.

Table of Contents

Methods

__construct()  : mixed
add()  : void
Adds a Currency to the collection.
count()  : int
Returns the number of currencies in the collection.
current()  : Currency
Returns the current Currency in the iteration.
toArray()  : array<string|int, Currency>

Methods

add()

Adds a Currency to the collection.

public add(Currency $currency) : void
Parameters
$currency : Currency

The currency to add

count()

Returns the number of currencies in the collection.

public count() : int
Return values
int

The count of currencies

current()

Returns the current Currency in the iteration.

public current() : Currency
Return values
Currency

The current currency object


        
On this page

Search results