public function getAmount(): float
    {
        $amounts = $this->map(
            function (CalculatedTax $calculatedTax) {
                return $calculatedTax->getTax();
            }
        );

        return array_sum($amounts);
    }
public function getAmount(): float
    {
        $amounts = $this->map(
            function (CalculatedTax $calculatedTax) {
                return $calculatedTax->getTax();
            }
        );

        return array_sum($amounts);
    }
public function getAmount ( ) : float { $ amounts = $ this -> map ( function ( CalculatedTax $ calculatedTax ) { return $ calculatedTax -> getTax ( ) ; } ) ; return array_sum ( $ amounts ) ; }
Returns the total calculated tax for this item
Returns the total calculated tax for this item