summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticMediaWiki/src/Elastic/QueryEngine/TermsLookup.php
blob: ab7177c2d4d28f00031d78fe110ac7e0bbe3393d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php

namespace SMW\Elastic\QueryEngine;

use SMW\Elastic\QueryEngine\TermsLookup\Parameters;

/**
 * @license GNU GPL v2+
 * @since 3.0
 *
 * @author mwjames
 */
interface TermsLookup {

	/**
	 * @since 3.0
	 *
	 * @return Parameters
	 */
	public function newParameters( array $parameters = [] );

	/**
	 * @since 3.0
	 *
	 * @param string $key
	 * @param Parameters $parameters
	 *
	 * @return array
	 */
	public function lookup( $key, Parameters $parameters );

	/**
	 * @since 3.0
	 */
	public function clear();

}