/** * Format percent discount * * @param \XLite\Module\CDev\Coupons\Model\Coupon $coupon Coupon * * @return float */ protected function formatPercentDiscount(\XLite\Module\CDev\Coupons\Model\Coupon $coupon) { return round($coupon->getValue(), 2); }
/** * {@inheritDoc} */ public function getValue() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'getValue', array()); return parent::getValue(); }