| Total Complexity | 3 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | class AssignHubsForm extends Server |
||
| 21 | { |
||
| 22 | use ModelTrait; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var array |
||
| 26 | */ |
||
| 27 | protected $switchVariants = ['net', 'kvm', 'pdu', 'rack', 'pdu2', 'net2', 'ipmi']; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * {@inheritdoc} |
||
| 31 | */ |
||
| 32 | public static function tableName() |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * {@inheritdoc} |
||
| 39 | */ |
||
| 40 | public function rules() |
||
| 41 | { |
||
| 42 | return array_merge(parent::rules(), $this->defaultSwitchRules(), $this->generateUniqueValidators()); |
||
| 43 | } |
||
| 44 | |||
| 45 | public function attributeLabels() |
||
| 50 | ]); |
||
| 51 | } |
||
| 53 |