AccountSignersResponse
extends IteratorIterator
in package
Represents a collection of account signers
This iterable collection holds all signers configured for an account. Signers enable multi-signature functionality by allowing multiple keys to authorize transactions. The collection is included in AccountResponse and provides iterator functionality.
Tags
Table of Contents
Methods
- __construct() : mixed
- Creates a new collection of account signers
- add() : mixed
- Adds a signer entry to the collection
- count() : int
- Gets the number of signer entries in the collection
- current() : AccountSignerResponse
- Gets the current signer in the iteration
- toArray() : array<string|int, AccountSignerResponse>
- Converts the collection to an array
Methods
__construct()
Creates a new collection of account signers
public
__construct(AccountSignerResponse ...$signers) : mixed
Parameters
- $signers : AccountSignerResponse
-
Variable number of signer entries
add()
Adds a signer entry to the collection
public
add(AccountSignerResponse $signer) : mixed
Parameters
- $signer : AccountSignerResponse
-
The signer entry to add
count()
Gets the number of signer entries in the collection
public
count() : int
Return values
int —The count of signer entries
current()
Gets the current signer in the iteration
public
current() : AccountSignerResponse
Return values
AccountSignerResponse —The current signer entry
toArray()
Converts the collection to an array
public
toArray() : array<string|int, AccountSignerResponse>
Return values
array<string|int, AccountSignerResponse> —Array of signer entries