| Total Complexity | 3 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class AssignHubsForm extends Server |
||
| 13 | { |
||
| 14 | use ModelTrait; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var array |
||
| 18 | */ |
||
| 19 | public $switchVariants = ['net', 'kvm', 'pdu', 'rack', 'pdu2', 'nic2', 'ipmi']; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @inheritdoc |
||
| 23 | */ |
||
| 24 | public static function tableName() |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @inheritdoc |
||
| 31 | */ |
||
| 32 | public function rules() |
||
| 33 | { |
||
| 34 | return array_merge(parent::rules(), $this->defaultSwitchRules(), $this->generateUniqueValidators()); |
||
| 35 | } |
||
| 36 | |||
| 37 | public function attributeLabels() |
||
| 42 | ]); |
||
| 43 | } |
||
| 46 |