AccountReplySequenceStart
extends SimpleSequenceStart
in package
Represents a sequence start value specifically for account reply packets, with potential additional functionality.
Table of Contents
Properties
- $value : int
Methods
- __construct() : mixed
- Constructs an AccountReplySequenceStart with a specified integer value.
- fromValue() : AccountReplySequenceStart
- Creates an instance from a given integer value, facilitating easy instantiation.
- generate() : AccountReplySequenceStart
- Generates a new AccountReplySequenceStart with a randomly determined integer value.
- getValue() : int
- A value sent by the server to update the client's sequence start, also known as the 'starting counter ID'.
- zero() : SequenceStart
- Returns an instance of SequenceStart with a value of 0.
Properties
$value
private
int
$value
Methods
__construct()
Constructs an AccountReplySequenceStart with a specified integer value.
public
__construct(int $value) : mixed
Parameters
- $value : int
-
The integer value for this sequence start.
fromValue()
Creates an instance from a given integer value, facilitating easy instantiation.
public
static fromValue(int $value) : AccountReplySequenceStart
Parameters
- $value : int
-
The value to use for the new sequence start.
Return values
AccountReplySequenceStart —Returns a new instance with the specified value.
generate()
Generates a new AccountReplySequenceStart with a randomly determined integer value.
public
static generate() : AccountReplySequenceStart
Return values
AccountReplySequenceStart —Returns a new instance with a random value.
getValue()
A value sent by the server to update the client's sequence start, also known as the 'starting counter ID'.
public
abstract getValue() : int
Return values
int —Returns the sequence start value.
zero()
Returns an instance of SequenceStart with a value of 0.
public
static zero() : SequenceStart
Return values
SequenceStart —An instance of SequenceStart.