Completed
Push — master ( fb0012...dc047d )
by Klochok
13:54
created

Binding   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A rules() 0 7 1
1
<?php
2
3
namespace hipanel\modules\server\models;
4
5
class Binding extends \hipanel\base\Model
6
{
7
    use \hipanel\base\ModelTrait;
8
9
    public function rules()
10
    {
11
        return [
12
            [['device_id', 'switch_id'], 'integer'],
13
            [['port', 'type', 'switch', 'switch_label', 'switch_inn', 'device_ip', 'switch_ip', 'web_iface_only'], 'string'],
14
        ];
15
    }
16
}
17