<?php

namespace NoahVet\Reef\Domain\Security\Port;

/**
 * Outbound port: enumerates all instances of a resource type for IAM synchronization.
 * Implement this to tell the system how to iterate over your entities.
 */
interface ResourceEnumeratorInterface extends ResourceFinderInterface
{
    /**
     * Yields all entities managed by this enumerator.
     *
     * @return \Generator<mixed>
     */
    public function enumerate(): \Generator;
}
