WellCommerce\Bundle\AppBundle\Entity\DiscountablePrice::getFinalGrossAmount PHP Method

getFinalGrossAmount() public method

public getFinalGrossAmount ( ) : float
return float
    public function getFinalGrossAmount() : float
    {
        if ($this->isDiscountValid()) {
            return $this->getDiscountedGrossAmount();
        }
        return $this->getGrossAmount();
    }

Usage Example

コード例 #1
0
ファイル: Product.php プロジェクト: Sywooch/WellCommerce
 /**
  * {@inheritdoc}
  */
 public function getShippingCostGrossPrice()
 {
     return $this->sellPrice->getFinalGrossAmount();
 }