XdrAllowTrustOperationAsset
extends XdrAllowTrustOperationAssetBase
in package
Table of Contents
Properties
- $assetCode12 : string|null
- $assetCode4 : string|null
- $type : XdrAssetType
Methods
- __construct() : mixed
- decode() : static
- encode() : string
- fromAlphaNumAssetCode() : XdrAllowTrustOperationAsset
- fromBase64Xdr() : static
- fromTxRep() : static
- Deserialize from a compact asset code string.
- getAssetCode12() : string|null
- getAssetCode4() : string|null
- getType() : XdrAssetType
- setAssetCode12() : void
- setAssetCode4() : void
- setType() : void
- toBase64Xdr() : string
- toTxRep() : void
- Serialize as a compact asset code string (e.g. "USD", "EURT").
Properties
$assetCode12
public
string|null
$assetCode12
= null
$assetCode4
public
string|null
$assetCode4
= null
$type
public
XdrAssetType
$type
Methods
__construct()
public
__construct([XdrAssetType|null $type = null ]) : mixed
Parameters
- $type : XdrAssetType|null = null
decode()
public
static decode(XdrBuffer $xdr) : static
Parameters
- $xdr : XdrBuffer
Return values
staticencode()
public
encode() : string
Return values
stringfromAlphaNumAssetCode()
public
static fromAlphaNumAssetCode(string $assetCode) : XdrAllowTrustOperationAsset
Parameters
- $assetCode : string
Return values
XdrAllowTrustOperationAssetfromBase64Xdr()
public
static fromBase64Xdr(string $xdr) : static
Parameters
- $xdr : string
Return values
staticfromTxRep()
Deserialize from a compact asset code string.
public
static fromTxRep(array<string, string> $map, string $prefix) : static
Parameters
- $map : array<string, string>
-
Parsed TxRep map.
- $prefix : string
-
Key prefix.
Tags
Return values
staticgetAssetCode12()
public
getAssetCode12() : string|null
Return values
string|nullgetAssetCode4()
public
getAssetCode4() : string|null
Return values
string|nullgetType()
public
getType() : XdrAssetType
Return values
XdrAssetTypesetAssetCode12()
public
setAssetCode12(string|null $assetCode12) : void
Parameters
- $assetCode12 : string|null
setAssetCode4()
public
setAssetCode4(string|null $assetCode4) : void
Parameters
- $assetCode4 : string|null
setType()
public
setType(XdrAssetType $type) : void
Parameters
- $type : XdrAssetType
toBase64Xdr()
public
toBase64Xdr() : string
Return values
stringtoTxRep()
Serialize as a compact asset code string (e.g. "USD", "EURT").
public
toTxRep(string $prefix, array<string, string> &$lines) : void
Overrides the generated base method, which would expand the type discriminant and raw hex bytes. SEP-0011 uses a plain trimmed code.
Parameters
- $prefix : string
-
Key prefix for the TxRep map.
- $lines : array<string, string>
-
Output map (modified in place).