SEP30AccountsResponse
in package
Response containing multiple accounts from SEP-0030 recovery server.
This class represents a collection of registered accounts that the JWT token allows access to via the GET /accounts endpoint.
Tags
Table of Contents
Properties
- $accounts : array<string|int, mixed>
Methods
- __construct() : mixed
- fromJson() : SEP30AccountsResponse
- Constructs a SEP30AccountsResponse from JSON data.
- getAccounts() : array<string|int, SEP30AccountResponse>
- Gets the array of accounts.
- setAccounts() : void
- Sets the array of accounts.
Properties
$accounts
public
array<string|int, mixed>
$accounts
Methods
__construct()
public
__construct(array<string|int, SEP30AccountResponse> $accounts) : mixed
Parameters
- $accounts : array<string|int, SEP30AccountResponse>
-
Array of registered accounts accessible via the JWT token.
fromJson()
Constructs a SEP30AccountsResponse from JSON data.
public
static fromJson(array<string|int, mixed> $json) : SEP30AccountsResponse
Parameters
- $json : array<string|int, mixed>
-
The JSON data to parse.
Return values
SEP30AccountsResponse —The constructed response.
getAccounts()
Gets the array of accounts.
public
getAccounts() : array<string|int, SEP30AccountResponse>
Return values
array<string|int, SEP30AccountResponse> —The accounts list.
setAccounts()
Sets the array of accounts.
public
setAccounts(array<string|int, SEP30AccountResponse> $accounts) : void
Parameters
- $accounts : array<string|int, SEP30AccountResponse>
-
The accounts list.