Documentation

CharItem
in package

Table of Contents

Properties

$amount  : int
$byteSize  : int
$id  : int

Methods

__toString()  : string
Returns a string representation of the object.
deserialize()  : CharItem
Deserializes an instance of `CharItem` from the provided `EoReader`.
getAmount()  : int
getByteSize()  : int
Returns the size of the data that this was deserialized from.
getId()  : int
serialize()  : void
Serializes an instance of `CharItem` to the provided `EoWriter`.
setAmount()  : void
setByteSize()  : void
Sets the size of the data that this was deserialized from.
setId()  : void

Properties

Methods

__toString()

Returns a string representation of the object.

public __toString() : string
Return values
string

deserialize()

Deserializes an instance of `CharItem` from the provided `EoReader`.

public static deserialize(EoReader $reader) : CharItem
Parameters
$reader : EoReader

The reader that the data will be deserialized from.

Return values
CharItem

The deserialized data.

getAmount()

public getAmount() : int
Return values
int

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.

getId()

public getId() : int
Return values
int

serialize()

Serializes an instance of `CharItem` to the provided `EoWriter`.

public static serialize(EoWriter $writer, CharItem $data) : void
Parameters
$writer : EoWriter

The writer that the data will be serialized to.

$data : CharItem

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.

setId()

public setId(int $id) : void
Parameters
$id : int

        
On this page

Search results