| Current File : /home/jvzmxxx/wiki/extensions/Wikibase/lib/includes/Interactors/TermSearchInteractor.php |
<?php
namespace Wikibase\Lib\Interactors;
/**
* Interface for searching for terms
*
* @since 0.5
*
* @license GPL-2.0+
* @author Addshore
*/
interface TermSearchInteractor {
/**
* @since 0.5
*
* @param string $text Term text to search for
* @param string $languageCode Language code to search in
* @param string $entityType Type of Entity to return
* @param string[] $termTypes Types of Term to return, array of Wikibase\TermIndexEntry::TYPE_*
*
* @return TermSearchResult[]
*/
public function searchForEntities( $text, $languageCode, $entityType, array $termTypes );
}