<?php

namespace NoahVet\Reef\Business\Enumerator;

use NoahVet\Reef\Jane\Model\LegalStructureResponseItem;

/**
 * @psalm-type LegalStructureFilter = array{
 *     id?: string[],
 *     veterinaryEstablishmentId?: string[],
 *     veterinaryEstablishmentMemberId?: string[],
 *     veterinaryGroupId?: string[],
 *     fromCreatedDate?: string[],
 *     fromUpdatedDate?: string[],
 *     toCreatedDate?: string[],
 *     toUpdatedDate?: string[],
 *     sortCreatedDate?: string,
 *     sortUpdatedDate?: string
 * }
 */
interface LegalStructureEnumeratorInterface
{
    /**
     * @param LegalStructureFilter $filters
     *
     * @return \Generator<LegalStructureResponseItem>
     */
    public function enumerateAll(array $filters = [], int $querySize = 50): \Generator;
}
