| Total Complexity | 2 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | class Binding extends \hipanel\base\Model |
||
| 19 | { |
||
| 20 | use \hipanel\base\ModelTrait; |
||
| 21 | |||
| 22 | public function rules() |
||
| 23 | { |
||
| 24 | return [ |
||
| 25 | [['device_id', 'switch_id', 'no', 'base_device_id'], 'integer'], |
||
| 26 | [ |
||
| 27 | [ |
||
| 28 | 'switch_name', 'device_name', 'base_device_name', 'port', 'type', 'switch', 'switch_label', |
||
| 29 | 'switch_inn', 'device_ip', 'switch_ip', 'web_iface_only', |
||
| 30 | ], |
||
| 31 | 'string', |
||
| 32 | ], |
||
| 33 | ]; |
||
| 34 | } |
||
| 35 | |||
| 36 | public function getTypeWithNo() |
||
| 39 | } |
||
| 40 | } |
||
| 41 |