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