QuestionTypeGroup   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 7
dl 0
loc 15
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A modelsAttributes() 0 7 1
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
}