FieldsMapping::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
c 0
b 0
f 0
rs 9.4285
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
3
namespace Wolnosciowiec\CoordinatesBundle\Model\Entity\Coordinates;
4
5
/**
6
 * Describes fields mapping for coordinates
7
 * that are used in query builder
8
 *
9
 * @package Wolnosciowiec\CoordinatesBundle\Model\Entity\Coordinates
10
 */
11
class FieldsMapping
12
{
13
    /** @var string $lat */
14
    private $lat;
15
16
    /** @var string $lon */
17
    private $lon;
18
19
    public function __construct($lat, $lon)
20
    {
21
        $this->lat = $lat;
22
        $this->lon = $lon;
23
    }
24
25
    /**
26
     * @return string
27
     */
28
    public function getLatitudeFieldName()
29
    {
30
        return $this->lat;
31
    }
32
33
    /**
34
     * @return string
35
     */
36
    public function getLongitudeFieldName()
37
    {
38
        return $this->lon;
39
    }
40
}