Completed
Push — master ( 44dea0...59b9fb )
by Vladimir
02:47
created

Location   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 53
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 53
ccs 10
cts 10
cp 1
rs 10
c 0
b 0
f 0
wmc 4
lcom 0
cbo 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getLatitude() 0 4 1
A setLatitude() 0 6 1
A getLongitude() 0 4 1
A setLongitude() 0 6 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace FondBot\Templates;
6
7
class Location
8
{
9
    private $latitude;
10
    private $longitude;
11
12
    /**
13
     * Get latitude.
14
     *
15
     * @return float
16
     */
17 1
    public function getLatitude(): float
18
    {
19 1
        return $this->latitude;
20
    }
21
22
    /**
23
     * Set latitude.
24
     *
25
     * @param float $latitude
26
     *
27
     * @return Location
28
     */
29 1
    public function setLatitude(float $latitude): Location
30
    {
31 1
        $this->latitude = $latitude;
32
33 1
        return $this;
34
    }
35
36
    /**
37
     * Get longitude.
38
     *
39
     * @return float
40
     */
41 1
    public function getLongitude(): float
42
    {
43 1
        return $this->longitude;
44
    }
45
46
    /**
47
     * Set longitude.
48
     *
49
     * @param float $longitude
50
     *
51
     * @return Location
52
     */
53 1
    public function setLongitude(float $longitude): Location
54
    {
55 1
        $this->longitude = $longitude;
56
57 1
        return $this;
58
    }
59
}
60