QuestionTypeGroup::modelsAttributes()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 7
c 0
b 0
f 0
rs 10
cc 1
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
}