SurveyModelTrait
Table of Contents
Properties
- $survey : mixed
Methods
- getSurveyModel() : Survey
- Get Survey
- setSurveyModel() : void
- Set Survey
Properties
$survey
private
mixed
$survey
= null
Methods
getSurveyModel()
Get Survey
public
getSurveyModel(int $id) : Survey
Used as a proxy for providing a mock record during testing.
Parameters
- $id : int
Return values
SurveysetSurveyModel()
Set Survey
public
setSurveyModel(Survey $survey) : void
Used to set mock record during testing.
Parameters
- $survey : Survey