OpenStreetMapDE   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 25
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A maxZoom() 0 3 1
A attribution() 0 3 1
A layer() 0 3 1
1
<?php
2
3
namespace Bavix\Leaflet\Tiles;
4
5
use Bavix\Leaflet\Tile;
6
7
class OpenStreetMapDE extends Tile
8
{
9
10
    /**
11
     * @return string
12
     */
13
    public function layer(): string
14
    {
15
        return 'https://{s}.tile.openstreetmap.de/tiles/osmde/{z}/{x}/{y}.png';
16
    }
17
18
    /**
19
     * @return string
20
     */
21
    public function attribution(): string
22
    {
23
        return '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>';
24
    }
25
26
    /**
27
     * @return int
28
     */
29
    public function maxZoom(): int
30
    {
31
        return 18;
32
    }
33
34
}
35