Stellar PHP SDK API Documentation

Validators extends IteratorIterator
in package

Collection of Validator objects from the stellar.toml file.

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

Table of Contents

Methods

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

Methods

count()

Returns the number of validators in the collection.

public count() : int
Return values
int

The count of validators

current()

Returns the current Validator in the iteration.

public current() : Validator
Return values
Validator

The current validator object


        
On this page

Search results