QuestionModelWithL10nsByIdAndLanguageTrait
Table of Contents
Properties
Methods
- getQuestionModelCollectionWithL10nsByIdAndLanguage() : Question
- Get question group with L10ns by survey ID
- setQuestionModelCollectionWithL10nsByIdAndLanguage() : void
- Set Question Group
Properties
$questionWithL10nsByIdAndLanguage
private
mixed
$questionWithL10nsByIdAndLanguage
= null
Methods
getQuestionModelCollectionWithL10nsByIdAndLanguage()
Get question group with L10ns by survey ID
public
getQuestionModelCollectionWithL10nsByIdAndLanguage(int $id, mixed $language) : Question
Used as a proxy for providing a mock record during testing.
Parameters
- $id : int
- $language : mixed
Return values
QuestionsetQuestionModelCollectionWithL10nsByIdAndLanguage()
Set Question Group
public
setQuestionModelCollectionWithL10nsByIdAndLanguage(array<string|int, mixed> $collection) : void
Used to set mock record during testing.
Parameters
- $collection : array<string|int, mixed>