Replace string class names with the ::class attribute.

This commit is contained in:
David Molineus
2017-10-17 13:51:09 +02:00
parent c2fd00e6a0
commit 59df74c3f9
23 changed files with 45 additions and 27 deletions

View File

@@ -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.

View File

@@ -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.

View File

@@ -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.

View File

@@ -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.

View File

@@ -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.

View File

@@ -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.

View File

@@ -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.