1 | <?php |
||
19 | class Calculation extends \hipanel\base\Model |
||
20 | { |
||
21 | use \hipanel\base\ModelTrait; |
||
22 | |||
23 | /** {@inheritdoc} */ |
||
24 | public static function tableName() |
||
25 | { |
||
26 | return 'action'; |
||
27 | } |
||
28 | |||
29 | /** {@inheritdoc} */ |
||
30 | public function init() |
||
46 | |||
47 | public function getValue() |
||
52 | |||
53 | /** |
||
54 | * @param string $currency |
||
55 | * |
||
56 | * @throws InvalidParamException when the $currency is not calculated |
||
57 | * @return Value |
||
58 | */ |
||
59 | public function forCurrency($currency) |
||
68 | |||
69 | /** {@inheritdoc} */ |
||
70 | public function rules() |
||
78 | |||
79 | /** |
||
80 | * Synchronises the model to represent actual state of [[position]] |
||
81 | * The method must update values, that affects the calculation and |
||
82 | * can be changed in cart without position re-adding. |
||
83 | * For example: quantity. |
||
84 | */ |
||
85 | public function synchronize() |
||
89 | } |
||
90 |
Since your code implements the magic setter
_set
, this function will be called for any write access on an undefined variable. You can add the@property
annotation to your class or interface to document the existence of this variable.Since the property has write access only, you can use the @property-write 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.