Completed
Push — master ( a6419d...fe0e5d )
by Tõnis
02:14
created

SurveyLanguage::primaryKey()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace dameter\abstracts\models;
4
5
use dameter\abstracts\ManyToManyModel;
6
use dameter\abstracts\interfaces\Sortable;
7
8
/**
9
 * Class SurveyLanguage
10
 * @property integer $survey_language_id
11
 *
12
 * @package modules\abstracts\models
13
 * @author Tõnis Ormisson <[email protected]>
14
 */
15
class SurveyLanguage extends ManyToManyModel implements Sortable
16
{
17
    public static  $parentClass = BaseSurvey::class;
18
    public static  $childClass = Language::class;
19
20
21
    /**
22
     * {@inheritdoc}
23
     */
24
    public static function tableName()
25
    {
26
        return "{{survey_language}}";
27
    }
28
29
    /**
30
     * {@inheritdoc}
31
     */
32
    public static function primaryKey()
33
    {
34
        return ["survey_language_id"];
35
    }
36
37
38
}