Skip to content
This repository has been archived by the owner on Mar 29, 2022. It is now read-only.

Commit

Permalink
Merge pull request #104 from heidelpay/change/PHPLIB-194/basket-amoun…
Browse files Browse the repository at this point in the history
…t-is-gross

[change] (PHPLIB-194) Basket: Add deprecation notice to amountTotal methods.
  • Loading branch information
Simon Gabriel authored Aug 14, 2019
2 parents 8b242dc + e079a56 commit f6171c4
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/Resources/Basket.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,28 @@ public function setAmountTotalGross(float $amountTotalGross): Basket
return $this;
}

/**
* @return float
*
* @deprecated since 1.2.0.0 Please use getAmountTotalGross instead.
*/
public function getAmountTotal(): float
{
return $this->getAmountTotalGross();
}

/**
* @param float $amountTotal
*
* @return Basket
*
* @deprecated since 1.2.0.0 Please use setAmountTotalGross instead.
*/
public function setAmountTotal(float $amountTotal): Basket
{
return $this->setAmountTotalGross($amountTotal);
}

/**
* @return float
*/
Expand Down

0 comments on commit f6171c4

Please sign in to comment.