Completed
Push — master ( 7f4619...15aae6 )
by Klochok
12:55
created

SoftwareSettings::getOsDefault()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace hipanel\modules\server\models;
4
5
class SoftwareSettings extends \hipanel\base\Model
6
{
7
    public function rules()
8
    {
9
        return [
10
            [['virtual_switch', 'ignore_ip_mon'], 'boolean'],
11
            [['os', 'version', 'ip_mon_comment', 'bw_limit', 'bw_group', 'failure_contacts', 'info'], 'string'],
12
        ];
13
    }
14
15
    public function getOsDefault()
16
    {
17
        return 'FreeBSD';
18
    }
19
20
    public function getBwLimitDefault()
21
    {
22
        return '95%';
23
    }
24
}
25