Completed
Push — master ( 3fa4d0...3f005a )
by Tõnis
02:22
created

QuestionTypeGroup::modelsAttributes()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 0
1
<?php
2
3
namespace dameter\abstracts\models;
4
5
6
use dameter\abstracts\TypeModel;
7
8
/**
9
 * Class QuestionTypeGroup
10
 * @package dameter\abstracts\models
11
 * @author Tõnis Ormisson <[email protected]>
12
 */
13
class QuestionTypeGroup extends TypeModel
14
{
15
16
    const TYPE_SINGLE = 1;
17
18
    /**
19
     * {@inheritdoc}
20
     */
21
    public function modelsAttributes()
22
    {
23
        return [
24
            self::TYPE_SINGLE => [
25
                'id' => self::TYPE_SINGLE,
26
                'order' => 0,
27
                'label' => \Yii::t('dmadmin', "Single choice questions"),
28
            ],
29
        ];
30
    }
31
}