1 | <?php |
||
21 | class Tariff extends \hipanel\base\Model implements CalculableModelInterface |
||
22 | { |
||
23 | use \hipanel\base\ModelTrait; |
||
24 | |||
25 | const TYPE_DOMAIN = 'domain'; |
||
26 | const TYPE_XEN = 'svds'; |
||
27 | const TYPE_OPENVZ = 'ovds'; |
||
28 | |||
29 | /** |
||
30 | * {@inheritdoc} |
||
31 | */ |
||
32 | public function rules() |
||
47 | |||
48 | public function getResources() |
||
58 | |||
59 | /** |
||
60 | * @param $type |
||
61 | * @param bool $stubWhenNotFound whether to return [[ServerResourceStub]] when |
||
62 | * the tariff does not have a relevant resource |
||
63 | * @return DomainResource|ServerResource|ServerResourceStub|resource |
||
64 | */ |
||
65 | public function getResourceByType($type, $stubWhenNotFound = true) |
||
75 | |||
76 | /** |
||
77 | * @param string $type |
||
78 | * @return ServerResourceStub |
||
79 | */ |
||
80 | public function getStubResource($type) |
||
87 | |||
88 | /** |
||
89 | * {@inheritdoc} |
||
90 | */ |
||
91 | public function attributeLabels() |
||
97 | |||
98 | /** |
||
99 | * {@inheritdoc} |
||
100 | * @return TariffQuery |
||
101 | */ |
||
102 | public static function find($options = []) |
||
108 | |||
109 | public function getGeneralType() |
||
119 | |||
120 | /** |
||
121 | * Method creates and returns corresponding Calculation model. |
||
122 | * |
||
123 | * @return Calculation |
||
124 | */ |
||
125 | public function getCalculationModel() |
||
133 | } |
||
134 |
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@property
annotation 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.