MessageTypeDataMessage
in package
implements
MessageTypeData
Data associated with messageType value AdminMessageType::MESSAGE
Table of Contents
Interfaces
- MessageTypeData
- Data associated with different values of the `messageType` field.
Properties
- $byteSize : int
- $message : string
- $playerName : string
Methods
- __toString() : string
- Returns a string representation of the object.
- deserialize() : MessageTypeDataMessage
- Deserializes an instance of `MessageTypeDataMessage` from the provided `EoReader`.
- getByteSize() : int
- Returns the size of the data that this was deserialized from.
- getMessage() : string
- getPlayerName() : string
- serialize() : void
- Serializes an instance of `MessageTypeDataMessage` to the provided `EoWriter`.
- setByteSize() : void
- Sets the size of the data that this was deserialized from.
- setMessage() : void
- setPlayerName() : void
Properties
$byteSize
private
int
$byteSize
= 0
$message
private
string
$message
= ""
$playerName
private
string
$playerName
= ""
Methods
__toString()
Returns a string representation of the object.
public
__toString() : string
Return values
stringdeserialize()
Deserializes an instance of `MessageTypeDataMessage` from the provided `EoReader`.
public
static deserialize(EoReader $reader) : MessageTypeDataMessage
Parameters
- $reader : EoReader
-
The reader that the data will be deserialized from.
Return values
MessageTypeDataMessage —The deserialized data.
getByteSize()
Returns the size of the data that this was deserialized from.
public
getByteSize() : int
Return values
int —The size of the data that this was deserialized from.
getMessage()
public
getMessage() : string
Return values
stringgetPlayerName()
public
getPlayerName() : string
Return values
stringserialize()
Serializes an instance of `MessageTypeDataMessage` to the provided `EoWriter`.
public
static serialize(EoWriter $writer, MessageTypeDataMessage $data) : void
Parameters
- $writer : EoWriter
-
The writer that the data will be serialized to.
- $data : MessageTypeDataMessage
-
The data to serialize.
setByteSize()
Sets the size of the data that this was deserialized from.
public
setByteSize(int $byteSize) : void
Parameters
- $byteSize : int
-
The size of the data that this was deserialized from.
setMessage()
public
setMessage(string $message) : void
Parameters
- $message : string
setPlayerName()
public
setPlayerName(string $playerName) : void
Parameters
- $playerName : string