OpenStreetMapDE::attribution()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
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