| Total Complexity | 3 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | class BaseAnswer extends WithSurveyModel implements WithLanguageSettingInterface |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * {@inheritdoc} |
||
| 23 | */ |
||
| 24 | public function rules() |
||
| 25 | { |
||
| 26 | return array_merge(parent::rules(), [ |
||
| 27 | [['question_id', 'code'], 'required'], |
||
| 28 | [['question_id'], 'integer'], |
||
| 29 | [['code'], 'string', 'max' => 64], |
||
| 30 | ]); |
||
| 31 | } |
||
| 32 | |||
| 33 | |||
| 34 | /** |
||
| 35 | * {@inheritdoc} |
||
| 36 | */ |
||
| 37 | public function getQuestion() |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * {@inheritdoc} |
||
| 44 | */ |
||
| 45 | public function getTexts() |
||
| 50 | } |