$this->typeProvider->getName($kind, $key)), new TwigFunction('plan_item_type_description', fn (string $kind, ?string $key): ?string => $this->typeProvider->getDescription($kind, $key)), new TwigFunction('plan_item_type_icon', fn (string $kind, ?string $key): ?string => $this->typeProvider->getIcon($kind, $key)), new TwigFunction('plan_currency', fn (): string => $this->currencyProvider->getCurrency()), new TwigFunction('plan_money', fn ($amount): string => number_format((float) $amount, 2)), ]; } }