LatLngTrait   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 23
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setLatLng() 0 4 1
A getLatLng() 0 4 1
1
<?php
2
/**
3
 * @copyright Copyright (c) 2013-2015 2amigOS! Consulting Group LLC
4
 * @link http://2amigos.us
5
 * @license http://www.opensource.org/licenses/bsd-license.php New BSD License
6
 */
7
namespace dosamigos\leaflet\layers;
8
9
use dosamigos\leaflet\types\LatLng;
10
11
trait LatLngTrait
12
{
13
    /**
14
     * @var \dosamigos\leaflet\types\LatLng holds the latitude and longitude values.
15
     */
16
    private $_latLon;
17
18
    /**
19
     * @param \dosamigos\leaflet\types\LatLng $latLon the position to render the marker
20
     */
21 96
    public function setLatLng(LatLng $latLon)
22
    {
23 96
        $this->_latLon = $latLon;
24 96
    }
25
26
    /**
27
     * @return \dosamigos\leaflet\types\LatLng
28
     */
29 102
    public function getLatLng()
30
    {
31 102
        return $this->_latLon;
32
    }
33
}
34