getUnit() == 'amount') { $text .= '- ' . $orderProductReductionCatalog->getValue() . ' €'; } if ($orderProductReductionCatalog->getUnit() == 'percent') { $text .= '- ' . $orderProductReductionCatalog->getValue() . ' %'; } return $text; } // compareOrderProductReductionCatalog public function compare( OrderProductReductionCatalogInterface $orderProductReductionCatalog, OrderProductReductionCatalogInterface $orderProductReductionCatalogCompare ): bool { return $orderProductReductionCatalog->getUnit() == $orderProductReductionCatalogCompare->getUnit() && (string)$orderProductReductionCatalog->getValue( ) == (string)$orderProductReductionCatalogCompare->getValue() && $orderProductReductionCatalog->getBehaviorTaxRate( ) == $orderProductReductionCatalogCompare->getBehaviorTaxRate(); } }