QuestionText   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 6
dl 0
loc 13
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A rules() 0 4 1
1
<?php
2
3
namespace dameter\abstracts\models;
4
5
/**
6
 * Class QuestionText
7
 * @property integer $question_text_id
8
 * @property integer $question_id
9
 * @property integer $type_id
10
 *
11
 * @package dameter\abstracts\models
12
 * @author Tõnis Ormisson <[email protected]>
13
 */
14
class QuestionText extends BaseLanguageSetting
15
{
16
    const TYPE_QUESTION = 1;
17
    const TYPE_HELP = 2;
18
19
    /** {@inheritdoc} */
20
    public static $parentClass = BaseQuestion::class;
21
22
    /** {@inheritdoc} */
23
    public function rules()
24
    {
25
        return array_merge(parent::rules(), [
26
            [['type_id'], 'integer'],
27
        ]);
28
    }
29
}