Stellar PHP SDK API Documentation

XdrSCSpecEntryKind
in package

Table of Contents

Constants

SC_SPEC_ENTRY_EVENT_V0  : mixed = 5
SC_SPEC_ENTRY_FUNCTION_V0  : mixed = 0
SC_SPEC_ENTRY_UDT_ENUM_V0  : mixed = 3
SC_SPEC_ENTRY_UDT_ERROR_ENUM_V0  : mixed = 4
SC_SPEC_ENTRY_UDT_STRUCT_V0  : mixed = 1
SC_SPEC_ENTRY_UDT_UNION_V0  : mixed = 2

Properties

$value  : int

Methods

__construct()  : mixed
decode()  : XdrSCSpecEntryKind
encode()  : string
EVENT_V0()  : XdrSCSpecEntryKind
fromBase64Xdr()  : static
fromJson()  : static
fromJsonValue()  : static
FUNCTION_V0()  : XdrSCSpecEntryKind
getValue()  : int
toBase64Xdr()  : string
toJson()  : string
toJsonValue()  : string
UDT_ENUM_V0()  : XdrSCSpecEntryKind
UDT_ERROR_ENUM_V0()  : XdrSCSpecEntryKind
UDT_STRUCT_V0()  : XdrSCSpecEntryKind
UDT_UNION_V0()  : XdrSCSpecEntryKind

Constants

SC_SPEC_ENTRY_UDT_ERROR_ENUM_V0

public mixed SC_SPEC_ENTRY_UDT_ERROR_ENUM_V0 = 4

Properties

Methods

fromBase64Xdr()

public static fromBase64Xdr(string $xdr) : static
Parameters
$xdr : string
Return values
static

fromJson()

public static fromJson(string $json) : static
Parameters
$json : string
Tags
throws
JsonException

If $json is not syntactically valid JSON.

InvalidArgumentException

If the JSON shape does not match this type.

Return values
static

fromJsonValue()

public static fromJsonValue(mixed $value) : static
Parameters
$value : mixed
Return values
static

toJson()

public toJson() : string
Tags
throws
JsonException

If the value contains structures that cannot be encoded as JSON.

Return values
string
On this page

Search results