1 | <?php |
||
18 | class Location extends BaseElement { |
||
19 | |||
20 | /** |
||
21 | * @var LatLongValue |
||
22 | */ |
||
23 | private $coordinates; |
||
24 | |||
25 | /** |
||
26 | * @var string |
||
27 | */ |
||
28 | private $address; |
||
29 | |||
30 | /** |
||
31 | * @var string |
||
32 | */ |
||
33 | private $icon = ''; |
||
34 | |||
35 | /** |
||
36 | * @var string |
||
37 | */ |
||
38 | private $group = ''; |
||
39 | |||
40 | /** |
||
41 | * @var string |
||
42 | */ |
||
43 | private $inlineLabel = ''; |
||
44 | |||
45 | /** |
||
46 | * @var string |
||
47 | */ |
||
48 | private $visitedIcon = ''; |
||
49 | |||
50 | 4 | public function __construct( LatLongValue $coordinates ) { |
|
54 | |||
55 | public static function newFromLatLon( float $lat, float $lon ): self { |
||
58 | |||
59 | 4 | public function getCoordinates(): LatLongValue { |
|
62 | |||
63 | public function getJSONObject( string $defText = '', string $defTitle = '', string $defIconUrl = '', |
||
92 | |||
93 | public function hasIcon(): bool { |
||
96 | |||
97 | public function getIcon(): string { |
||
100 | |||
101 | public function setIcon( string $icon ) { |
||
104 | |||
105 | /** |
||
106 | * Returns the address corresponding to this location. |
||
107 | * If there is none, and empty sting is returned. |
||
108 | */ |
||
109 | public function getAddress(): string { |
||
116 | |||
117 | /** |
||
118 | * Returns whether Location is assigned to a group. |
||
119 | */ |
||
120 | public function hasGroup(): bool { |
||
123 | |||
124 | public function getGroup(): string { |
||
127 | |||
128 | public function setGroup( string $group ) { |
||
131 | |||
132 | public function hasInlineLabel(): bool { |
||
135 | |||
136 | public function getInlineLabel(): string { |
||
139 | |||
140 | public function setInlineLabel( string $label ) { |
||
143 | |||
144 | public function hasVisitedIcon(): bool { |
||
147 | |||
148 | public function getVisitedIcon(): string { |
||
151 | |||
152 | public function setVisitedIcon( string $visitedIcon ) { |
||
155 | |||
156 | } |
||
157 |
This method has been deprecated.