Completed
Push — master ( af8828...3a4530 )
by Vladimir
02:46
created

Location::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 5
ccs 0
cts 4
cp 0
rs 9.4285
cc 1
eloc 3
nc 1
nop 2
crap 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace FondBot\Contracts\Drivers\Message;
6
7
class Location
8
{
9
    protected $latitude;
10
    protected $longitude;
11
12
    public function __construct(float $latitude, float $longitude)
13
    {
14
        $this->latitude = $latitude;
15
        $this->longitude = $longitude;
16
    }
17
18
    /**
19
     * Get latitude.
20
     *
21
     * @return float
22
     */
23
    public function getLatitude(): float
24
    {
25
        return $this->latitude;
26
    }
27
28
    /**
29
     * Get longitude.
30
     *
31
     * @return float
32
     */
33
    public function getLongitude(): float
34
    {
35
        return $this->longitude;
36
    }
37
}
38