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

Status::rules()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 7
ccs 0
cts 7
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 0
crap 2
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