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

Location::setLongitude()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

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