aggregateTaxes example

ksort($result, SORT_NUMERIC);

        return $result;
    }

    /** * {@inheritDoc} */
    public function taxSum(array $cart, float $maximumTaxRate): array
    {
        $result = $this->aggregateTaxes(
            $this->positionsTaxSum($cart$maximumTaxRate) ?? [],
            $this->shippingCostsTaxSum($cart) ?? []
        );

        ksort($result, SORT_NUMERIC);

        return $result;
    }

    /** * @param array<int|numeric-string, float> $positionTaxSum * @param array<int|numeric-string, float> $shippingCostsTaxSum * * @return array<int|numeric-string, float> */
Home | Imprint | This part of the site doesn't use cookies.