Skip to content

Commit

Permalink
totalRounding set
Browse files Browse the repository at this point in the history
  • Loading branch information
segy committed Jul 1, 2022
1 parent 32b94b4 commit d66e2df
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/Cart.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit d66e2df

Please # to comment.