ChangeTrustOperationBuilder
in package
Builder for creating ChangeTrust operations.
This builder implements the builder pattern to construct ChangeTrustOperation instances with a fluent interface. ChangeTrust operations create, update, or delete a trustline between the source account and an asset issuer.
Tags
Table of Contents
Methods
- __construct() : mixed
- Creates a new ChangeTrust operation builder.
- build() : ChangeTrustOperation
- Builds the ChangeTrust operation.
- setMuxedSourceAccount() : $this
- Sets the muxed source account for this operation.
- setSourceAccount() : $this
- Sets the source account for this operation.
Methods
__construct()
Creates a new ChangeTrust operation builder.
public
__construct(Asset $asset[, string|null $limit = null ]) : mixed
Parameters
- $asset : Asset
-
The asset of the trustline
- $limit : string|null = null
-
The limit of the trustline (null for default maximum)
build()
Builds the ChangeTrust operation.
public
build() : ChangeTrustOperation
Return values
ChangeTrustOperation —The constructed operation
setMuxedSourceAccount()
Sets the muxed source account for this operation.
public
setMuxedSourceAccount(MuxedAccount $sourceAccount) : $this
Parameters
- $sourceAccount : MuxedAccount
-
The muxed account to use as source
Return values
$this —Returns the builder instance for method chaining
setSourceAccount()
Sets the source account for this operation.
public
setSourceAccount(string $accountId) : $this
Parameters
- $accountId : string
-
The Stellar account ID (G...)
Return values
$this —Returns the builder instance for method chaining