| 1 | <?php |
||
| 16 | class ServerUse extends RUse |
||
| 17 | { |
||
| 18 | use \hipanel\base\ModelTrait; |
||
| 19 | |||
| 20 | public function formName() |
||
| 24 | |||
| 25 | public static function tableName() |
||
| 26 | { |
||
| 27 | return 'server'; |
||
| 28 | } |
||
| 29 | |||
| 30 | private function getTrafficTypes() |
||
| 31 | { |
||
| 32 | return ['server_traf_in', 'server_traf_max', 'server_traf']; |
||
| 33 | } |
||
| 34 | |||
| 35 | private function getBandwidthTypes() |
||
| 39 | |||
| 40 | public function getDisplayAmount() |
||
| 50 | } |
||
| 51 |
Since your code implements the magic getter
_get, this function will be called for any read access on an undefined variable. You can add the@propertyannotation to your class or interface to document the existence of this variable.If the property has read access only, you can use the @property-read annotation instead.
Of course, you may also just have mistyped another name, in which case you should fix the error.
See also the PhpDoc documentation for @property.