/** * @param \Orm\Zed\Discount\Persistence\SpyDiscount $discountEntity * * @return string */ protected function getFormattedAmount(SpyDiscount $discountEntity) { return $this->getCalculatorPlugin($discountEntity->getCalculatorPlugin())->getFormattedAmount($discountEntity->getAmount()); }