1 | <?php |
||
20 | class Location extends BaseElement { |
||
21 | |||
22 | /** |
||
23 | * @var LatLongValue |
||
24 | */ |
||
25 | private $coordinates; |
||
26 | |||
27 | /** |
||
28 | * @var string |
||
29 | */ |
||
30 | private $address; |
||
31 | |||
32 | /** |
||
33 | * @var string |
||
34 | */ |
||
35 | private $icon = ''; |
||
36 | |||
37 | /** |
||
38 | * @var string |
||
39 | */ |
||
40 | private $group = ''; |
||
41 | |||
42 | /** |
||
43 | * @var string |
||
44 | */ |
||
45 | private $inlineLabel = ''; |
||
46 | |||
47 | /** |
||
48 | * @var string |
||
49 | */ |
||
50 | private $visitedIcon = ''; |
||
51 | |||
52 | public function __construct( LatLongValue $coordinates, string $title = '', string $text = '' ) { |
||
57 | |||
58 | public static function newFromLatLon( float $lat, float $lon ): self { |
||
61 | |||
62 | public function getCoordinates(): LatLongValue { |
||
65 | |||
66 | public function getJSONObject( string $defText = '', string $defTitle = '', string $defIconUrl = '', |
||
95 | |||
96 | public function hasIcon(): bool { |
||
99 | |||
100 | public function getIcon(): string { |
||
103 | |||
104 | public function setIcon( string $icon ) { |
||
107 | |||
108 | /** |
||
109 | * Returns the address corresponding to this location. |
||
110 | * If there is none, and empty sting is returned. |
||
111 | */ |
||
112 | public function getAddress(): string { |
||
119 | |||
120 | /** |
||
121 | * Returns whether Location is assigned to a group. |
||
122 | */ |
||
123 | public function hasGroup(): bool { |
||
126 | |||
127 | public function getGroup(): string { |
||
130 | |||
131 | public function setGroup( string $group ) { |
||
134 | |||
135 | public function hasInlineLabel(): bool { |
||
138 | |||
139 | public function getInlineLabel(): string { |
||
142 | |||
143 | public function setInlineLabel( string $label ) { |
||
146 | |||
147 | public function hasVisitedIcon(): bool { |
||
150 | |||
151 | public function getVisitedIcon(): string { |
||
154 | |||
155 | public function setVisitedIcon( string $visitedIcon ) { |
||
158 | |||
159 | } |
||
160 |
This method has been deprecated.