25 lines
403 B
PHP
25 lines
403 B
PHP
|
|
<?php
|
||
|
|
/**
|
||
|
|
* Interface for search engine implementations
|
||
|
|
*/
|
||
|
|
interface Search {
|
||
|
|
/**
|
||
|
|
* Set query word to search for
|
||
|
|
* @param string $word
|
||
|
|
*/
|
||
|
|
public function setQuery($word);
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Set additional parameters
|
||
|
|
* @param string $key
|
||
|
|
* @param string $value
|
||
|
|
*/
|
||
|
|
public function setParam($key, $value);
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Get received data as array
|
||
|
|
* @return array
|
||
|
|
*/
|
||
|
|
public function getData();
|
||
|
|
}
|
||
|
|
?>
|