Files
contao-leaflet-maps/src/Filter/Filter.php

53 lines
1.0 KiB
PHP
Raw Normal View History

2015-01-24 21:36:33 +01:00
<?php
/**
2016-10-11 10:40:15 +02:00
* @package contao-leaflet-maps
2015-01-24 21:36:33 +01:00
* @author David Molineus <david.molineus@netzmacht.de>
2016-10-11 10:40:15 +02:00
* @copyright 2014-2016 netzmacht David Molineus
2015-01-24 21:36:33 +01:00
* @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();
}