InnQuestionRecord
in package
Table of Contents
Properties
- $answer : string
- $answerLength : int
- $byteSize : int
- $question : string
- $questionLength : int
Methods
- __toString() : string
- Returns a string representation of the object.
- deserialize() : InnQuestionRecord
- Deserializes an instance of `InnQuestionRecord` from the provided `EoReader`.
- getAnswer() : string
- getAnswerLength() : int
- getByteSize() : int
- Returns the size of the data that this was deserialized from.
- getQuestion() : string
- getQuestionLength() : int
- serialize() : void
- Serializes an instance of `InnQuestionRecord` to the provided `EoWriter`.
- setAnswer() : void
- setAnswerLength() : void
- setByteSize() : void
- Sets the size of the data that this was deserialized from.
- setQuestion() : void
- setQuestionLength() : void
Properties
$answer
private
string
$answer
= ""
$answerLength
private
int
$answerLength
$byteSize
private
int
$byteSize
= 0
$question
private
string
$question
= ""
$questionLength
private
int
$questionLength
Methods
__toString()
Returns a string representation of the object.
public
__toString() : string
Return values
stringdeserialize()
Deserializes an instance of `InnQuestionRecord` from the provided `EoReader`.
public
static deserialize(EoReader $reader) : InnQuestionRecord
Parameters
- $reader : EoReader
-
The reader that the data will be deserialized from.
Return values
InnQuestionRecord —The deserialized data.
getAnswer()
public
getAnswer() : string
Return values
stringgetAnswerLength()
public
getAnswerLength() : 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.
getQuestion()
public
getQuestion() : string
Return values
stringgetQuestionLength()
public
getQuestionLength() : int
Return values
intserialize()
Serializes an instance of `InnQuestionRecord` to the provided `EoWriter`.
public
static serialize(EoWriter $writer, InnQuestionRecord $data) : void
Parameters
- $writer : EoWriter
-
The writer that the data will be serialized to.
- $data : InnQuestionRecord
-
The data to serialize.
setAnswer()
public
setAnswer(string $answer) : void
Parameters
- $answer : string
setAnswerLength()
public
setAnswerLength(int $answerLength) : void
Parameters
- $answerLength : 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.
setQuestion()
public
setQuestion(string $question) : void
Parameters
- $question : string
setQuestionLength()
public
setQuestionLength(int $questionLength) : void
Parameters
- $questionLength : int