. */ declare(strict_types=1); namespace App\Services\InfoProviderSystem\Providers; use App\Services\InfoProviderSystem\DTOs\SearchResultDTO; /** * This interface marks a provider as a info provider which can provide information directly in batch operations */ interface BatchInfoProviderInterface extends InfoProviderInterface { /** * Search for multiple keywords in a single batch operation and return the results, ordered by the keywords. * This allows for a more efficient search compared to running multiple single searches. * @param string[] $keywords * @return array An associative array where the key is the keyword and the value is the search results for that keyword */ public function searchByKeywordsBatch(array $keywords): array; }