<?php

namespace NoahVet\Reef\Domain\Serialization\Service;

interface GetAllServiceInterface
{
    /**
     * @template T of object
     *
     * @param array<int|string, mixed>                           $normalizationAttributes
     * @param class-string<T>                                    $janeModelFQCN
     * @param callable(array<string, mixed>, ?string): void|null $postNormalize           receives ($item, $locale)
     *
     * @return list<array<string, mixed>>
     */
    public function execute(
        mixed $objects,
        array $normalizationAttributes,
        string $janeModelFQCN,
        ?string $locale = null,
        ?callable $postNormalize = null,
    ): array;
}
