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

Target   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 16
rs 10
c 0
b 0
f 0

1 Method

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