Completed
Push — master ( 74c9a9...1153e3 )
by Andrii
11:57 queued 07:40
created

ConfigProfile::tableName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
ccs 0
cts 3
cp 0
rs 10
cc 1
nc 1
nop 0
crap 2
1
<?php
2
/**
3
 * Server module for HiPanel
4
 *
5
 * @link      https://github.com/hiqdev/hipanel-module-server
6
 * @package   hipanel-module-server
7
 * @license   BSD-3-Clause
8
 * @copyright Copyright (c) 2015-2019, HiQDev (http://hiqdev.com/)
9
 */
10
11
namespace hipanel\modules\server\models;
12
13
use hipanel\base\Model;
14
use hipanel\base\ModelTrait;
15
16
class ConfigProfile extends Model
17
{
18
    use ModelTrait;
19
20
    /** {@inheritdoc} */
21
    public static function tableName()
22
    {
23
        return 'profile';
24
    }
25
26
    /** {@inheritdoc} */
27
    public function rules()
28
    {
29
        return [
30
            [['id'], 'integer'],
31
            [['name', 'label', 'type', 'class'], 'string'],
32
            [['class'], 'default', 'value' => 'config'],
33
        ];
34
    }
35
}
36