public function getAmountWithTax(): string
    {
        if (! $this->hasTax()) {
            return $this->getMoney()->getAmount();
        }

        return $this->getTax()->getAmountWithTax($this->getMoney());
    }
public function getAmountWithTax(): string
    {
        if (! $this->hasTax()) {
            return $this->getMoney()->getAmount();
        }

        return $this->getTax()->getAmountWithTax($this->getMoney());
    }
public function getAmountWithTax ( ) : string { if ( ! $ this -> hasTax ( ) ) { return $ this -> getMoney ( ) -> getAmount ( ) ; } return $ this -> getTax ( ) -> getAmountWithTax ( $ this -> getMoney ( ) ) ; }
Returns the value represented by this object with Tax.

@return string
Returns the value represented by this object with Tax .