SEP38Fee
in package
Fee structure for a quote or price in SEP-38.
This class represents the total fee charged for an exchange operation, including the fee amount, the asset in which it is charged, and an optional breakdown of individual fee components.
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- fromJson() : SEP38Fee
- Constructs a new instance of SEP38Fee by using the given data.
Properties
$asset
public
string
$asset
$details
public
array<string|int, mixed>|null
$details
= null
$total
public
string
$total
Methods
__construct()
public
__construct(string $total, string $asset[, array<string|int, SEP38FeeDetails>|null $details = null ]) : mixed
Parameters
- $total : string
-
The total fee amount.
- $asset : string
-
The asset in which the fee is charged.
- $details : array<string|int, SEP38FeeDetails>|null = null
-
Optional detailed breakdown of fee components.
fromJson()
Constructs a new instance of SEP38Fee by using the given data.
public
static fromJson(array<string|int, mixed> $json) : SEP38Fee
Parameters
- $json : array<string|int, mixed>
-
the data to construct the object from.
Return values
SEP38Fee —the object containing the parsed data.