title; } public function setTitle(string $title): self { $this->title = $title; return $this; } // getSummaryOrderProductReductionCatalog public function getSummary() { $text = ''; if ($this->getUnit() == 'amount') { $text .= '- ' . $this->getValue() . ' €'; } if ($this->getUnit() == 'percent') { $text .= '- ' . $this->getValue() . ' %'; } return $text; } // compareOrderProductReductionCatalog public function compare($orderProductReductionCatalog) { return $orderProductReductionCatalog && $this->getUnit() == $orderProductReductionCatalog->getUnit() && (string)$this->getValue() == (string)$orderProductReductionCatalog->getValue() && $this->getBehaviorTaxRate() == $orderProductReductionCatalog->getBehaviorTaxRate(); } }