From d66e2dfe2ecfa8c1e17ec067f98c3c065662f133 Mon Sep 17 00:00:00 2001 From: Tomas Saghy Date: Sat, 2 Jul 2022 00:19:48 +0200 Subject: [PATCH] totalRounding set --- src/Cart.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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. *