forked from valizada/Telegram-Bot-Client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLocation.php
48 lines (43 loc) · 812 Bytes
/
Location.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
<?php
/**
* This object represents a point on the map.
* Required params: $longitude, $latitude.
* User: valizada
* Date: 26/08/15
* Time: 14:21
*/
class Location
{
private $longitude;
private $latitude;
/**
* @return Float
* Longitude as defined by sender
*/
public function getLongitude()
{
return $this->longitude;
}
/**
* @param mixed $longitude
*/
public function setLongitude($longitude)
{
$this->longitude = $longitude;
}
/**
* @return Float
* Latitude as defined by sender
*/
public function getLatitude()
{
return $this->latitude;
}
/**
* @param mixed $latitude
*/
public function setLatitude($latitude)
{
$this->latitude = $latitude;
}
}