Your IP : 216.73.217.78


Current Path : /home/seto/indexator.pm/src/Search/
Upload File :
Current File : /home/seto/indexator.pm/src/Search/SearchProviderInterface.php

<?php

namespace App\Search;

interface SearchProviderInterface
{
    public function getName(): string;

    /** Single synchronous search (used as fallback). */
    public function search(string $query): SearchResult;

    /**
     * Returns curl options array for a query (used by ConcurrentChecker).
     * Must include CURLOPT_URL and all auth/headers needed.
     */
    public function buildCurlOptions(string $query): array;

    /**
     * Parses raw HTTP response body + status code into SearchResult.
     * Used by ConcurrentChecker after curl_multi completes.
     */
    public function parseResponse(string $body, int $httpCode): SearchResult;
}