| Total Complexity | 3 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | class SurveyLanguage extends ManyToManyModel implements Sortable |
||
| 16 | { |
||
| 17 | public static $parentClass = BaseSurvey::class; |
||
| 18 | public static $childClass = Language::class; |
||
| 19 | |||
| 20 | /** {@inheritdoc} */ |
||
| 21 | public function rules() |
||
| 22 | { |
||
| 23 | return array_merge(parent::rules(), [ |
||
| 24 | [['survey_id', 'language_id'], 'integer'], |
||
| 25 | ]); |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * {@inheritdoc} |
||
| 30 | */ |
||
| 31 | public static function tableName() |
||
| 32 | { |
||
| 33 | return "survey_language"; |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * {@inheritdoc} |
||
| 38 | */ |
||
| 39 | public static function primaryKey() |
||
| 42 | } |
||
| 43 | |||
| 44 | |||
| 45 | } |