LatLngTrait::setLatLng()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 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