LedgerEntryChange
in package
Part of the simulate transaction response
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- fromJson() : static
- Creates an instance from JSON-RPC response data
- getAfter() : string|null
- getAfterXdr() : XdrLedgerEntry|null
- getBefore() : string|null
- getBeforeXdr() : XdrLedgerEntry|null
- getKey() : string
- getKeyXdr() : XdrLedgerKey
- getType() : string
- setAfter() : void
- setBefore() : void
- setKey() : void
- setType() : void
Properties
$after
public
string|null
$after
= null
$before
public
string|null
$before
= null
$key
public
string
$key
$type
public
string
$type
Methods
__construct()
public
__construct(string $type, string $key[, string|null $before = null ][, string|null $after = null ]) : mixed
Parameters
- $type : string
-
Indicates if the entry was 'created', 'updated', or 'deleted'
- $key : string
-
XdrLedgerKey in base64 for this delta
- $before : string|null = null
-
XdrLedgerEntry in base64 (state prior to simulation)
- $after : string|null = null
-
XdrLedgerEntry in base64 (state after simulation)
fromJson()
Creates an instance from JSON-RPC response data
public
static fromJson(array<string, mixed> $json) : static
Parameters
- $json : array<string, mixed>
-
The JSON response data
Return values
static —The created instance
getAfter()
public
getAfter() : string|null
Return values
string|null —XdrLedgerEntry in base64 (state after simulation)
getAfterXdr()
public
getAfterXdr() : XdrLedgerEntry|null
Tags
Return values
XdrLedgerEntry|null —XdrLedgerEntry (state after to simulation)
getBefore()
public
getBefore() : string|null
Return values
string|null —XdrLedgerEntry in base64 (state prior to simulation)
getBeforeXdr()
public
getBeforeXdr() : XdrLedgerEntry|null
Tags
Return values
XdrLedgerEntry|null —XdrLedgerEntry (state prior to simulation)
getKey()
public
getKey() : string
Return values
string —the XdrLedgerKey in base64 for this delta.
getKeyXdr()
public
getKeyXdr() : XdrLedgerKey
Tags
Return values
XdrLedgerKey —the XdrLedgerKey for this delta
getType()
public
getType() : string
Return values
string —Indicates if the entry was 'created', 'updated', or 'deleted'
setAfter()
public
setAfter(string|null $after) : void
Parameters
- $after : string|null
-
XdrLedgerEntry in base64 (state after simulation)
setBefore()
public
setBefore(string|null $before) : void
Parameters
- $before : string|null
-
XdrLedgerEntry in base64 (state prior to simulation)
setKey()
public
setKey(string $key) : void
Parameters
- $key : string
-
the XdrLedgerKey in base64 for this delta
setType()
public
setType(string $type) : void
Parameters
- $type : string
-
Indicates if the entry was 'created', 'updated', or 'deleted'