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 | 72 | public function __construct( LatLongValue $coordinates ) { |
|
53 | |||
54 | public static function newFromLatLon( float $lat, float $lon ): self { |
||
57 | |||
58 | 7 | public function getCoordinates(): LatLongValue { |
|
61 | |||
62 | 13 | public function getJSONObject( string $defText = '', string $defTitle = '', string $defIconUrl = '', |
|
91 | |||
92 | 13 | public function hasIcon(): bool { |
|
95 | |||
96 | public function getIcon(): string { |
||
99 | |||
100 | 1 | public function setIcon( string $icon ) { |
|
103 | |||
104 | /** |
||
105 | * Returns the address corresponding to this location. |
||
106 | * If there is none, and empty sting is returned. |
||
107 | */ |
||
108 | 13 | public function getAddress(): string { |
|
115 | |||
116 | /** |
||
117 | * Returns whether Location is assigned to a group. |
||
118 | */ |
||
119 | 13 | public function hasGroup(): bool { |
|
122 | |||
123 | public function getGroup(): string { |
||
126 | |||
127 | 1 | public function setGroup( string $group ) { |
|
130 | |||
131 | 13 | public function hasInlineLabel(): bool { |
|
134 | |||
135 | 1 | public function getInlineLabel(): string { |
|
138 | |||
139 | 1 | public function setInlineLabel( string $label ) { |
|
142 | |||
143 | 13 | public function hasVisitedIcon(): bool { |
|
146 | |||
147 | public function getVisitedIcon(): string { |
||
150 | |||
151 | public function setVisitedIcon( string $visitedIcon ) { |
||
154 | |||
155 | } |
||
156 |
This method has been deprecated.