Stellar PHP SDK API Documentation

FeeDetailsDetails

Represents a detailed breakdown component of a fee.

Contains the name and amount for a specific fee component. Multiple instances can be used to provide a granular breakdown of total fees.

Tags
see
https://github.com/stellar/stellar-protocol/blob/v4.3.0/ecosystem/sep-0006.md

SEP-06 Specification

see
FeeDetails

Table of Contents

Properties

$amount  : string
$description  : string|null
$name  : string

Methods

__construct()  : mixed
fromJson()  : FeeDetailsDetails
Constructs a new instance of FeeDetailsDetails by using the given data.

Properties

Methods

__construct()

public __construct(string $name, string $amount[, string|null $description = null ]) : mixed
Parameters
$name : string

The name of the fee, for example ACH fee, Brazilian conciliation fee, Service fee, etc.

$amount : string

The amount of asset applied. If fee_details.details is provided, sum(fee_details.details.amount) should be equals fee_details.total.

$description : string|null = null

A text describing the fee.

fromJson()

Constructs a new instance of FeeDetailsDetails by using the given data.

public static fromJson(array<string|int, mixed> $json) : FeeDetailsDetails
Parameters
$json : array<string|int, mixed>

the data to construct the object from.

Return values
FeeDetailsDetails

the object containing the parsed data.


        
On this page

Search results