mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2025-12-06 06:48:37 +01:00
Replace string class names with the ::class attribute.
This commit is contained in:
@@ -16,6 +16,7 @@ use Contao\Model;
|
||||
use Netzmacht\Contao\Leaflet\Mapper\DefinitionMapper;
|
||||
use Netzmacht\Contao\Leaflet\Request\Request;
|
||||
use Netzmacht\LeafletPHP\Definition;
|
||||
use Netzmacht\LeafletPHP\Definition\Vector\Circle;
|
||||
use Netzmacht\LeafletPHP\Definition\Vector\CircleMarker;
|
||||
use Netzmacht\LeafletPHP\Value\LatLng;
|
||||
|
||||
@@ -31,7 +32,7 @@ class CircleMapper extends AbstractVectorMapper
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $definitionClass = 'Netzmacht\LeafletPHP\Definition\Vector\Circle';
|
||||
protected static $definitionClass = Circle::class;
|
||||
|
||||
/**
|
||||
* Layer type.
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
|
||||
namespace Netzmacht\Contao\Leaflet\Mapper\Vector;
|
||||
|
||||
use Netzmacht\LeafletPHP\Definition\Vector\CircleMarker;
|
||||
|
||||
/**
|
||||
* Class CircleMarkerMapper maps the database model to the circle marker definition.
|
||||
*
|
||||
@@ -24,7 +26,7 @@ class CircleMarkerMapper extends CircleMapper
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $definitionClass = 'Netzmacht\LeafletPHP\Definition\Vector\CircleMarker';
|
||||
protected static $definitionClass = CircleMarker::class;
|
||||
|
||||
/**
|
||||
* Layer type.
|
||||
|
||||
@@ -30,7 +30,7 @@ class MultiPolygonMapper extends MultiPolylineMapper
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $definitionClass = 'Netzmacht\LeafletPHP\Definition\Vector\Polygon';
|
||||
protected static $definitionClass = Polygon::class;
|
||||
|
||||
/**
|
||||
* Layer type.
|
||||
|
||||
@@ -31,7 +31,7 @@ class MultiPolylineMapper extends AbstractVectorMapper
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $definitionClass = 'Netzmacht\LeafletPHP\Definition\Vector\Polyline';
|
||||
protected static $definitionClass = Polyline::class;
|
||||
|
||||
/**
|
||||
* Layer type.
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
|
||||
namespace Netzmacht\Contao\Leaflet\Mapper\Vector;
|
||||
|
||||
use Netzmacht\LeafletPHP\Definition\Vector\Polygon;
|
||||
|
||||
/**
|
||||
* Class PolygonMapper maps the database model to the polygon definition.
|
||||
*
|
||||
@@ -24,7 +26,7 @@ class PolygonMapper extends PolylineMapper
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $definitionClass = 'Netzmacht\LeafletPHP\Definition\Vector\Polygon';
|
||||
protected static $definitionClass = Polygon::class;
|
||||
|
||||
/**
|
||||
* Layer type.
|
||||
|
||||
@@ -31,7 +31,7 @@ class PolylineMapper extends AbstractVectorMapper
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $definitionClass = 'Netzmacht\LeafletPHP\Definition\Vector\Polyline';
|
||||
protected static $definitionClass = Polyline::class;
|
||||
|
||||
/**
|
||||
* Layer type.
|
||||
|
||||
@@ -15,6 +15,7 @@ namespace Netzmacht\Contao\Leaflet\Mapper\Vector;
|
||||
use Contao\Model;
|
||||
use Netzmacht\Contao\Leaflet\Mapper\DefinitionMapper;
|
||||
use Netzmacht\Contao\Leaflet\Request\Request;
|
||||
use Netzmacht\LeafletPHP\Definition\Vector\Rectangle;
|
||||
use Netzmacht\LeafletPHP\Value\LatLng;
|
||||
use Netzmacht\LeafletPHP\Value\LatLngBounds;
|
||||
|
||||
@@ -30,7 +31,7 @@ class RectangleMapper extends AbstractVectorMapper
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected static $definitionClass = 'Netzmacht\LeafletPHP\Definition\Vector\Rectangle';
|
||||
protected static $definitionClass = Rectangle::class;
|
||||
|
||||
/**
|
||||
* Layer type.
|
||||
|
||||
Reference in New Issue
Block a user