XdrSCError
in package
Table of Contents
Properties
- $code : XdrSCErrorCode|null
- $contractCode : int|null
- $type : XdrSCErrorType
Methods
- __construct() : mixed
- decode() : XdrSCError
- encode() : string
- fromBase64Xdr() : static
- fromTxRep() : XdrSCError
- getCode() : XdrSCErrorCode|null
- getContractCode() : int|null
- getType() : XdrSCErrorType
- setCode() : void
- setContractCode() : void
- setType() : void
- toBase64Xdr() : string
- toTxRep() : void
Properties
$code
public
XdrSCErrorCode|null
$code
= null
$contractCode
public
int|null
$contractCode
= null
$type
public
XdrSCErrorType
$type
Methods
__construct()
public
__construct([XdrSCErrorType|null $type = null ]) : mixed
Parameters
- $type : XdrSCErrorType|null = null
decode()
public
static decode(XdrBuffer $xdr) : XdrSCError
Parameters
- $xdr : XdrBuffer
Return values
XdrSCErrorencode()
public
encode() : string
Return values
stringfromBase64Xdr()
public
static fromBase64Xdr(string $xdr) : static
Parameters
- $xdr : string
Return values
staticfromTxRep()
public
static fromTxRep(array<string|int, mixed> $map, string $prefix) : XdrSCError
Parameters
- $map : array<string|int, mixed>
- $prefix : string
Return values
XdrSCErrorgetCode()
public
getCode() : XdrSCErrorCode|null
Return values
XdrSCErrorCode|nullgetContractCode()
public
getContractCode() : int|null
Return values
int|nullgetType()
public
getType() : XdrSCErrorType
Return values
XdrSCErrorTypesetCode()
public
setCode(XdrSCErrorCode|null $code) : void
Parameters
- $code : XdrSCErrorCode|null
setContractCode()
public
setContractCode(int|null $contractCode) : void
Parameters
- $contractCode : int|null
setType()
public
setType(XdrSCErrorType $type) : void
Parameters
- $type : XdrSCErrorType
toBase64Xdr()
public
toBase64Xdr() : string
Return values
stringtoTxRep()
public
toTxRep(string $prefix, array<string|int, mixed> &$lines) : void
Parameters
- $prefix : string
- $lines : array<string|int, mixed>