mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2025-12-01 04:24:02 +01:00
39 lines
945 B
PHP
39 lines
945 B
PHP
<?php
|
|
|
|
/**
|
|
* @package dev
|
|
* @author David Molineus <david.molineus@netzmacht.de>
|
|
* @copyright 2014 netzmacht creative David Molineus
|
|
* @license LGPL 3.0
|
|
* @filesource
|
|
*
|
|
*/
|
|
|
|
namespace Netzmacht\Contao\Leaflet\Mapper;
|
|
|
|
use Netzmacht\LeafletPHP\Definition;
|
|
use Netzmacht\LeafletPHP\Definition\Type\LatLngBounds;
|
|
|
|
interface Mapper
|
|
{
|
|
/**
|
|
* Map model to the definition.
|
|
*
|
|
* @param \Model $model The model being built.
|
|
* @param DefinitionMapper $mapper The definition builder.
|
|
* @param LatLngBounds $bounds Optional bounds where elements should be in.
|
|
*
|
|
* @return Definition
|
|
*/
|
|
public function handle(\Model $model, DefinitionMapper $mapper, LatLngBounds $bounds = null);
|
|
|
|
/**
|
|
* Check if mapper is responsible for the model.
|
|
*
|
|
* @param \Model $model The model being build.
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function match(\Model $model);
|
|
}
|