| Total Complexity | 2 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | abstract class BaseAnswer extends WithSurveyModel |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * {@inheritdoc} |
||
| 21 | */ |
||
| 22 | public function rules() |
||
| 23 | { |
||
| 24 | return array_merge(parent::rules(), [ |
||
| 25 | [['question_id', 'code'], 'required'], |
||
| 26 | [['question_id'], 'integer'], |
||
| 27 | [['code'], 'string', 'max' => 64], |
||
| 28 | ]); |
||
| 29 | } |
||
| 30 | |||
| 31 | |||
| 32 | /** |
||
| 33 | * {@inheritdoc} |
||
| 34 | */ |
||
| 35 | public function getQuestion() |
||
| 38 | } |
||
| 39 | |||
| 40 | } |