XdrAssetType
in package
Table of Contents
Constants
- ASSET_TYPE_CREDIT_ALPHANUM12 : mixed = 2
- ASSET_TYPE_CREDIT_ALPHANUM4 : mixed = 1
- ASSET_TYPE_NATIVE : mixed = 0
- ASSET_TYPE_POOL_SHARE : mixed = 3
Properties
- $value : int
Methods
- __construct() : mixed
- ASSET_TYPE_CREDIT_ALPHANUM12() : XdrAssetType
- ASSET_TYPE_CREDIT_ALPHANUM4() : XdrAssetType
- ASSET_TYPE_NATIVE() : XdrAssetType
- ASSET_TYPE_POOL_SHARE() : XdrAssetType
- decode() : XdrAssetType
- encode() : string
- enumName() : string
- fromBase64Xdr() : static
- fromJson() : static
- fromJsonValue() : static
- fromTxRep() : static
- fromTxRepName() : static
- getValue() : int
- toBase64Xdr() : string
- toJson() : string
- toJsonValue() : string
- toTxRep() : void
Constants
ASSET_TYPE_CREDIT_ALPHANUM12
public
mixed
ASSET_TYPE_CREDIT_ALPHANUM12
= 2
ASSET_TYPE_CREDIT_ALPHANUM4
public
mixed
ASSET_TYPE_CREDIT_ALPHANUM4
= 1
ASSET_TYPE_NATIVE
public
mixed
ASSET_TYPE_NATIVE
= 0
ASSET_TYPE_POOL_SHARE
public
mixed
ASSET_TYPE_POOL_SHARE
= 3
Properties
$value
public
int
$value
Methods
__construct()
public
__construct(int $value) : mixed
Parameters
- $value : int
ASSET_TYPE_CREDIT_ALPHANUM12()
public
static ASSET_TYPE_CREDIT_ALPHANUM12() : XdrAssetType
Return values
XdrAssetTypeASSET_TYPE_CREDIT_ALPHANUM4()
public
static ASSET_TYPE_CREDIT_ALPHANUM4() : XdrAssetType
Return values
XdrAssetTypeASSET_TYPE_NATIVE()
public
static ASSET_TYPE_NATIVE() : XdrAssetType
Return values
XdrAssetTypeASSET_TYPE_POOL_SHARE()
public
static ASSET_TYPE_POOL_SHARE() : XdrAssetType
Return values
XdrAssetTypedecode()
public
static decode(XdrBuffer $xdr) : XdrAssetType
Parameters
- $xdr : XdrBuffer
Return values
XdrAssetTypeencode()
public
encode() : string
Return values
stringenumName()
public
enumName() : string
Return values
stringfromBase64Xdr()
public
static fromBase64Xdr(string $xdr) : static
Parameters
- $xdr : string
Return values
staticfromJson()
public
static fromJson(string $json) : static
Parameters
- $json : string
Tags
Return values
staticfromJsonValue()
public
static fromJsonValue(mixed $value) : static
Parameters
- $value : mixed
Return values
staticfromTxRep()
public
static fromTxRep(array<string|int, mixed> $map, string $prefix) : static
Parameters
- $map : array<string|int, mixed>
- $prefix : string
Return values
staticfromTxRepName()
public
static fromTxRepName(string $name) : static
Parameters
- $name : string
Return values
staticgetValue()
public
getValue() : int
Return values
inttoBase64Xdr()
public
toBase64Xdr() : string
Return values
stringtoJson()
public
toJson() : string
Tags
Return values
stringtoJsonValue()
public
toJsonValue() : string
Return values
stringtoTxRep()
public
toTxRep(string $prefix, array<string|int, mixed> &$lines) : void
Parameters
- $prefix : string
- $lines : array<string|int, mixed>