summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/Maps/src/MappingService.php
blob: 184ef712e7f7f3ad83af8c02b7f7c730a78eb15a (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
<?php

namespace Maps;

use ParamProcessor\ParamDefinition;

/**
 * @licence GNU GPL v2+
 * @author Jeroen De Dauw < jeroendedauw@gmail.com >
 */
interface MappingService {

	public function getName(): string;

	public function getAliases(): array;

	public function hasAlias( string $alias ): bool;

	/**
	 * @return array[]|ParamDefinition[]
	 */
	public function getParameterInfo(): array;

	public function getDependencyHtml( array $params ): string;

	/**
	 * Returns the resource modules that need to be loaded to use this mapping service.
	 */
	public function getResourceModules(): array;

	public function newMapId();

}