Files
contao-leaflet-maps/src/Mapper/AbstractTypeMapper.php

38 lines
785 B
PHP
Raw Normal View History

2014-12-29 16:19:43 +01:00
<?php
/**
2016-10-11 10:40:15 +02:00
* @package contao-leaflet-maps
2014-12-29 16:19:43 +01:00
* @author David Molineus <david.molineus@netzmacht.de>
2016-10-11 10:40:15 +02:00
* @copyright 2014-2016 netzmacht David Molineus
2014-12-29 16:19:43 +01:00
* @license LGPL 3.0
* @filesource
*
*/
namespace Netzmacht\Contao\Leaflet\Mapper;
use Netzmacht\Contao\Leaflet\Filter\Filter;
2015-01-12 19:03:29 +01:00
/**
* Class AbstractTypeMapper is the base mapper for tables containing different types of definitins.
*
* @package Netzmacht\Contao\Leaflet\Mapper
*/
2015-01-05 12:25:46 +01:00
abstract class AbstractTypeMapper extends AbstractMapper
2014-12-29 16:19:43 +01:00
{
2015-01-12 19:03:29 +01:00
/**
* The definition type.
*
* @var string
*/
2014-12-29 16:19:43 +01:00
protected static $type;
2015-01-12 19:03:29 +01:00
/**
* {@inheritdoc}
*/
public function match($model, Filter $filter = null)
2014-12-29 16:19:43 +01:00
{
return parent::match($model) && $model->type === static::$type;
}
}