Version
in package
Table of Contents
Properties
Methods
- __toString() : string
- Returns a string representation of the object.
- deserialize() : Version
- Deserializes an instance of `Version` from the provided `EoReader`.
- getByteSize() : int
- Returns the size of the data that this was deserialized from.
- getMajor() : int
- getMinor() : int
- getPatch() : int
- serialize() : void
- Serializes an instance of `Version` to the provided `EoWriter`.
- setByteSize() : void
- Sets the size of the data that this was deserialized from.
- setMajor() : void
- setMinor() : void
- setPatch() : void
Properties
$byteSize
private
int
$byteSize
= 0
$major
private
int
$major
$minor
private
int
$minor
$patch
private
int
$patch
Methods
__toString()
Returns a string representation of the object.
public
__toString() : string
Return values
stringdeserialize()
Deserializes an instance of `Version` from the provided `EoReader`.
public
static deserialize(EoReader $reader) : Version
Parameters
- $reader : EoReader
-
The reader that the data will be deserialized from.
Return values
Version —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.
getMajor()
public
getMajor() : int
Return values
intgetMinor()
public
getMinor() : int
Return values
intgetPatch()
public
getPatch() : int
Return values
intserialize()
Serializes an instance of `Version` to the provided `EoWriter`.
public
static serialize(EoWriter $writer, Version $data) : void
Parameters
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.
setMajor()
public
setMajor(int $major) : void
Parameters
- $major : int
setMinor()
public
setMinor(int $minor) : void
Parameters
- $minor : int
setPatch()
public
setPatch(int $patch) : void
Parameters
- $patch : int