| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | * @inheritdoc |
||
| 31 | */ |
||
| 32 | public function rules() |
||
| 33 | { |
||
| 34 | return array_merge(parent::rules(), $this->defaultSwitchRules(), $this->generateUniqueValidators()); |
||
| 35 | } |
||
| 36 | |||
| 37 | public function attributeLabels() |
||
| 38 | { |
||
| 39 | return array_merge(parent::attributeLabels(), [ |
||
| 40 | 'pdu2' => Yii::t('hipanel:server', 'APC 2'), |
||
| 41 | 'nic2' => Yii::t('hipanel:server', 'Switch 2'), |
||
| 42 | ]); |
||
| 43 | } |
||
| 46 |