forked from Smile-SA/magento2-module-map
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGeoPoint.php
64 lines (58 loc) · 1.18 KB
/
GeoPoint.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php
/**
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this module to newer
* versions in the future.
*
* @category Smile
* @package Smile\Map
* @author Aurelien FOUCRET <[email protected]>
* @copyright 2016 Smile
* @license Apache License Version 2.0
*/
namespace Smile\Map\Model;
use Smile\Map\Api\Data\GeoPointInterface;
/**
* Default implementation of the GeoPointInterface.
*
* @category Smile
* @package Smile\Map
* @author Aurelien FOUCRET <[email protected]>
*/
class GeoPoint implements GeoPointInterface
{
/**
* @var float
*/
private $latitude;
/**
* @var float
*/
private $longitude;
/**
* Constructor.
*
* @param float $latitude Latitude
* @param float $longitude Longitude
*/
public function __construct($latitude, $longitude)
{
$this->latitude = $latitude;
$this->longitude = $longitude;
}
/**
* {@inheritDoc}
*/
public function getLatitude()
{
return $this->latitude;
}
/**
* {@inheritDoc}
*/
public function getLongitude()
{
return $this->longitude;
}
}