OpenStreetMapMapnik   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
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 OpenStreetMapMapnik extends Tile
8
{
9
10
    /**
11
     * @return string
12
     */
13
    public function layer(): string
14
    {
15
        return 'https://{s}.tile.openstreetmap.org/{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