mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-30 09:48:55 +00:00
29 lines
594 B
PHP
29 lines
594 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Services\Search\Contracts;
|
|
|
|
/**
|
|
* Interface for search drivers.
|
|
*
|
|
* Extends SearchServiceInterface with additional driver-specific methods.
|
|
*/
|
|
interface SearchDriverInterface extends SearchServiceInterface
|
|
{
|
|
/**
|
|
* Get the driver name.
|
|
*/
|
|
public function getDriverName(): string;
|
|
|
|
/**
|
|
* Check if the search service is available.
|
|
*/
|
|
public function isAvailable(): bool;
|
|
|
|
/**
|
|
* Escape a search string for the specific driver.
|
|
*/
|
|
public static function escapeString(string $string): string;
|
|
}
|