Completed
Push — master ( 4b854a...47989e )
by Dmitry
15:07
created

Target::rules()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace hipanel\modules\finance\models;
4
5
use hipanel\base\Model;
6
use hipanel\base\ModelTrait;
7
8
class Target extends Model
9
{
10
    use ModelTrait;
11
12
    /**
13
     * {@inheritdoc}
14
     * @return array
15
     */
16
    public function rules()
17
    {
18
        return [
19
            [['id', 'type_id', 'state_id', 'client_id', 'access_id'], 'integer'],
20
            [['type', 'state', 'client', 'name'], 'string'],
21
        ];
22
    }
23
}
24