TOIDRange
in package
An inclusive-start, exclusive-end range of encoded SEP-35 operation IDs.
This value class is returned by TOID::ledgerRangeInclusive() to describe the
span of encoded 64-bit ID values that correspond to a range of ledgers. The start
value is inclusive and the end value is exclusive, so callers should filter with
start <= id < end when using this range to bound a query.
Tags
Table of Contents
Methods
- __construct() : mixed
- getEnd() : int
- Returns the exclusive upper bound of the range.
- getStart() : int
- Returns the inclusive lower bound of the range.
Methods
__construct()
public
__construct(int $start, int $end) : mixed
Parameters
- $start : int
-
the inclusive lower bound of the range, as an encoded ID
- $end : int
-
the exclusive upper bound of the range, as an encoded ID
getEnd()
Returns the exclusive upper bound of the range.
public
getEnd() : int
Return values
int —the smallest encoded ID that no longer belongs to the range
getStart()
Returns the inclusive lower bound of the range.
public
getStart() : int
Return values
int —the smallest encoded ID that belongs to the range