Completed
Push — master ( 1c1ab1...d1e65d )
by Dmitry
04:36
created

Status   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 12
ccs 0
cts 7
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A rules() 0 7 1
1
<?php
2
3
/*
4
 * HiPanel core package
5
 *
6
 * @link      https://hipanel.com/
7
 * @package   hipanel-core
8
 * @license   BSD-3-Clause
9
 * @copyright Copyright (c) 2014-2016, HiQDev (http://hiqdev.com/)
10
 */
11
12
namespace hipanel\models;
13
14
class Status extends \hiqdev\hiart\ActiveRecord
15
{
16
    use \hipanel\base\ModelTrait;
17
18
    public function rules()
19
    {
20
        return [
21
            [['id', 'object_id', 'subject_id', 'type_id'], 'integer'],
22
            [['type', 'subject_name'], 'safe'],
23
        ];
24
    }
25
}
26