-
Notifications
You must be signed in to change notification settings - Fork 0
/
Placemarks.php
77 lines (68 loc) · 1.43 KB
/
Placemarks.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
65
66
67
68
69
70
71
72
73
74
75
76
77
<?php
/**
* Class Placemarks
*/
class Placemarks
{
const STYLE_PM = 'pm';
const STYLE_PM2 = 'pm2';
const STYLE_FLAG = 'flag';
const STYLE_VK = 'vk';
const STYLE_COMMA = 'comma';
const STYLE_ORG = 'org';
const STYLE_ROUND = 'round';
const STYLE_HOME = 'home';
const STYLE_WORK = 'work';
const STYLE_YA_EN = 'ya_en';
protected $latitude;
protected $longitude;
protected $style = self::STYLE_ROUND;
protected $color;
protected $size;
protected $content;
/**
* @param mixed $latitude
*/
public function setLatitude($latitude)
{
$this->latitude = $latitude;
}
/**
* @param mixed $longitude
*/
public function setLongitude($longitude)
{
$this->longitude = $longitude;
}
/**
* @param mixed $style
*/
public function setStyle($style)
{
$this->style = $style;
}
/**
* @param mixed $color
*/
public function setColor($color)
{
$this->color = $color;
}
/**
* @param mixed $size
*/
public function setSize($size)
{
$this->size = $size;
}
/**
* @param mixed $content
*/
public function setContent($content)
{
$this->content = $content;
}
public function get() {
return $this->longitude . ',' . $this->latitude . ',' . $this->style . $this->color . $this->size . $this->content;
}
}