diff --git a/src/Cart.php b/src/Cart.php index 1d26cb3..70d7b66 100644 --- a/src/Cart.php +++ b/src/Cart.php @@ -184,6 +184,24 @@ public function getPromotions() return $this->_promotions; } + /** + * Set total rounding function. + * + * @param callable|null $rounding + */ + public function setTotalRounding(?callable $rounding): void + { + $this->totalRounding = $rounding; + } + + /** + * Get total rounding function. + */ + public function getTotalRounding(): ?callable + { + return $this->totalRounding; + } + /** * Set sorting by type. *