EventFilters
extends IteratorIterator
in package
Collection of EventFilter objects used in Soroban RPC getEvents requests.
Implements iterator pattern for traversing multiple event filters.
Tags
Table of Contents
Methods
- __construct() : mixed
- Constructor.
- add() : void
- Adds an EventFilter to the collection.
- count() : int
- Returns the number of EventFilter objects in the collection.
- current() : EventFilter
- Returns the current EventFilter in the iteration.
- toArray() : array<string|int, EventFilter>
Methods
__construct()
Constructor.
public
__construct(EventFilter ...$responses) : mixed
Parameters
- $responses : EventFilter
-
Variable number of EventFilter objects
add()
Adds an EventFilter to the collection.
public
add(EventFilter $response) : void
Parameters
- $response : EventFilter
-
The event filter to add
count()
Returns the number of EventFilter objects in the collection.
public
count() : int
Return values
int —The count of event filters
current()
Returns the current EventFilter in the iteration.
public
current() : EventFilter
Return values
EventFilter —The current event filter
toArray()
public
toArray() : array<string|int, EventFilter>