1 | <?php |
||
2 | /** |
||
3 | * Server module for HiPanel |
||
4 | * |
||
5 | * @link https://github.com/hiqdev/hipanel-module-server |
||
6 | * @package hipanel-module-server |
||
7 | * @license BSD-3-Clause |
||
8 | * @copyright Copyright (c) 2015-2019, HiQDev (http://hiqdev.com/) |
||
9 | */ |
||
10 | |||
11 | namespace hipanel\modules\server\models; |
||
12 | |||
13 | /** |
||
14 | * Class Binding. |
||
15 | * |
||
16 | * @author Dmytro Naumenko <[email protected]> |
||
17 | */ |
||
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() |
||
37 | { |
||
38 | return $this->type . $this->no; |
||
0 ignored issues
–
show
Bug
Best Practice
introduced
by
Loading history...
The property
no does not exist on hipanel\modules\server\models\Binding . Since you implemented __get , consider adding a @property annotation.
Loading history...
|
|||
39 | } |
||
40 | } |
||
41 |