ShopTradeRecord
in package
Table of Contents
Properties
- $buyPrice : int
- $byteSize : int
- $itemId : int
- $maxAmount : int
- $sellPrice : int
Methods
- __toString() : string
- Returns a string representation of the object.
- deserialize() : ShopTradeRecord
- Deserializes an instance of `ShopTradeRecord` from the provided `EoReader`.
- getBuyPrice() : int
- getByteSize() : int
- Returns the size of the data that this was deserialized from.
- getItemId() : int
- getMaxAmount() : int
- getSellPrice() : int
- serialize() : void
- Serializes an instance of `ShopTradeRecord` to the provided `EoWriter`.
- setBuyPrice() : void
- setByteSize() : void
- Sets the size of the data that this was deserialized from.
- setItemId() : void
- setMaxAmount() : void
- setSellPrice() : void
Properties
$buyPrice
private
int
$buyPrice
$byteSize
private
int
$byteSize
= 0
$itemId
private
int
$itemId
$maxAmount
private
int
$maxAmount
$sellPrice
private
int
$sellPrice
Methods
__toString()
Returns a string representation of the object.
public
__toString() : string
Return values
stringdeserialize()
Deserializes an instance of `ShopTradeRecord` from the provided `EoReader`.
public
static deserialize(EoReader $reader) : ShopTradeRecord
Parameters
- $reader : EoReader
-
The reader that the data will be deserialized from.
Return values
ShopTradeRecord —The deserialized data.
getBuyPrice()
public
getBuyPrice() : int
Return values
intgetByteSize()
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.
getItemId()
public
getItemId() : int
Return values
intgetMaxAmount()
public
getMaxAmount() : int
Return values
intgetSellPrice()
public
getSellPrice() : int
Return values
intserialize()
Serializes an instance of `ShopTradeRecord` to the provided `EoWriter`.
public
static serialize(EoWriter $writer, ShopTradeRecord $data) : void
Parameters
- $writer : EoWriter
-
The writer that the data will be serialized to.
- $data : ShopTradeRecord
-
The data to serialize.
setBuyPrice()
public
setBuyPrice(int $buyPrice) : void
Parameters
- $buyPrice : int
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.
setItemId()
public
setItemId(int $itemId) : void
Parameters
- $itemId : int
setMaxAmount()
public
setMaxAmount(int $maxAmount) : void
Parameters
- $maxAmount : int
setSellPrice()
public
setSellPrice(int $sellPrice) : void
Parameters
- $sellPrice : int