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

Binding::find()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 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