Use PHP's ::class constant.

This commit is contained in:
David Molineus
2017-10-11 14:50:14 +02:00
parent 8c6f4c4291
commit f09929fae7
13 changed files with 36 additions and 14 deletions

View File

@@ -13,6 +13,7 @@
namespace Netzmacht\Contao\Leaflet\Mapper\Layer;
use Netzmacht\Contao\Leaflet\Mapper\AbstractTypeMapper;
use Netzmacht\Contao\Leaflet\Model\LayerModel;
/**
* Class AbstractLayerMapper is the base mapper for the layer model.
@@ -26,7 +27,7 @@ class AbstractLayerMapper extends AbstractTypeMapper
*
* @var string
*/
protected static $modelClass = 'Netzmacht\Contao\Leaflet\Model\LayerModel';
protected static $modelClass = LayerModel::class;
/**
* {@inheritdoc}

View File

@@ -39,7 +39,7 @@ class OverpassLayerMapper extends AbstractLayerMapper
*
* @var string
*/
protected static $definitionClass = 'Netzmacht\Contao\Leaflet\Definition\Layer\OverpassLayer';
protected static $definitionClass = OverpassLayer::class;
/**
* {@inheritdoc}