| 1 | <?php |
| 2 | |
| 3 | namespace MediaWiki\Search\SearchWidgets; |
| 4 | |
| 5 | use SearchResult; |
| 6 | |
| 7 | /** |
| 8 | * Renders a single search result to HTML |
| 9 | */ |
| 10 | interface SearchResultWidget { |
| 11 | /** |
| 12 | * @param SearchResult $result The result to render |
| 13 | * @param int $position The zero indexed result position, including offset |
| 14 | * @return string HTML |
| 15 | */ |
| 16 | public function render( SearchResult $result, $position ); |
| 17 | } |