The method Categories() does not exist on SilverCommerce\Discounts\Model\FixedRateDiscount. Since you implemented __call, consider adding a @method annotation.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
The property MinOrder does not exist on SilverCommerce\Discounts\Model\FixedRateDiscount. Since you implemented __get, consider adding a @property annotation.
The property Amount does not exist on SilverCommerce\Discounts\Model\FixedRateDiscount. Since you implemented __get, consider adding a @property annotation.
Loading history...
41
42
if ($value < $min) {
43
$amount = 0;
44
}
45
46
if ($amount > $value) {
47
$amount = $value;
48
}
49
50
return $amount;
51
}
52
53
public function appliedAmount(AppliedDiscount $item)
The method Estimate() does not exist on SilverCommerce\Discounts\Model\AppliedDiscount. Since you implemented __call, consider adding a @method annotation.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation