FeeDetails
in package
Describes fee information for a transfer operation.
Contains the total fee amount, the asset in which the fee is charged, and optional detailed breakdown of fee components.
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- fromJson() : FeeDetails
- Constructs a new instance of FeeDetails 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, FeeDetailsDetails>|null $details = null ]) : mixed
Parameters
- $total : string
-
The total amount of fee applied.
- $asset : string
-
The asset in which the fee is applied, represented through the Asset Identification Format.
- $details : array<string|int, FeeDetailsDetails>|null = null
-
An array of objects detailing the fees that were used to calculate the conversion price. This can be used to detail the price components for the end-user.
fromJson()
Constructs a new instance of FeeDetails by using the given data.
public
static fromJson(array<string|int, mixed> $json) : FeeDetails
Parameters
- $json : array<string|int, mixed>
-
the data to construct the object from.
Return values
FeeDetails —the object containing the parsed data.