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

Binding::rules()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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