QuestionModelTrait
Table of Contents
Properties
- $question : mixed
Methods
- getQuestionModel() : Question
- Get Question
- setQuestionModel() : void
- Set Question
Properties
$question
private
mixed
$question
= null
Methods
getQuestionModel()
Get Question
public
getQuestionModel(int $id) : Question
Used as a proxy for providing a mock record during testing.
Parameters
- $id : int
Return values
QuestionsetQuestionModel()
Set Question
public
setQuestionModel(Question $question) : void
Used to set mock record during testing.
Parameters
- $question : Question