mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2026-01-16 12:25:17 +01:00
Switch to PSR-4.
This commit is contained in:
52
src/Filter/Filter.php
Normal file
52
src/Filter/Filter.php
Normal file
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package contao-leaflet-maps
|
||||
* @author David Molineus <david.molineus@netzmacht.de>
|
||||
* @copyright 2014-2016 netzmacht David Molineus
|
||||
* @license LGPL 3.0
|
||||
* @filesource
|
||||
*
|
||||
*/
|
||||
|
||||
namespace Netzmacht\Contao\Leaflet\Filter;
|
||||
|
||||
/**
|
||||
* Interface Filter is designed for filter a data request. It just contains the filter information.
|
||||
*
|
||||
* Each layer has it own responsibility to apply the filter to their provided data.
|
||||
*
|
||||
* @package Netzmacht\Contao\Leaflet\Filter
|
||||
*/
|
||||
interface Filter
|
||||
{
|
||||
/**
|
||||
* Get the name of the filter.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public static function getName();
|
||||
|
||||
/**
|
||||
* Create the filter from a request string.
|
||||
*
|
||||
* @param string $request The request.
|
||||
*
|
||||
* @return Filter
|
||||
*/
|
||||
public static function fromRequest($request);
|
||||
|
||||
/**
|
||||
* Create request string representation.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function toRequest();
|
||||
|
||||
/**
|
||||
* Get the param values.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getValues();
|
||||
}
|
||||
Reference in New Issue
Block a user