Completed
Pull Request — master (#139)
by
unknown
04:18
created

Geo::getId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Yandex\Market\Content\Models;
4
5
use Yandex\Common\Model;
6
7
class Geo extends Model
8
{
9
    protected $id = null;
10
11
    protected $latitude = null;
12
13
    protected $longitude = null;
14
15
    protected $distance = null;
16
17
    protected $propNameMap = [
18
        'geoId' => 'id'
19
    ];
20
21
    /**
22
     * Retrieve the id property
23
     *
24
     * @return int|null
25
     */
26 5
    public function getId()
27
    {
28 5
        return $this->id;
29
    }
30
31
    /**
32
     * Retrieve the latitude property
33
     *
34
     * @return string|null
35
     */
36 5
    public function getLatitude()
37
    {
38 5
        return $this->latitude;
39
    }
40
41
    /**
42
     * Retrieve the longitude property
43
     *
44
     * @return string|null
45
     */
46 5
    public function getLongitude()
47
    {
48 5
        return $this->longitude;
49
    }
50
51
    /**
52
     * Retrieve the distance property
53
     *
54
     * @return string|null
55
     */
56
    public function getDistance()
57
    {
58
        return $this->distance;
59
    }
60
}
61