@@ -355,6 +355,9 @@ |
||
| 355 | 355 | } |
| 356 | 356 | |
| 357 | 357 | |
| 358 | + /** |
|
| 359 | + * @param boolean $value |
|
| 360 | + */ |
|
| 358 | 361 | private function getParameterWithValue( ProcessedParam $param, $value ) { |
| 359 | 362 | return new ProcessedParam( |
| 360 | 363 | $param->getName(), |
@@ -136,6 +136,10 @@ |
||
| 136 | 136 | return $locationJsonObjects; |
| 137 | 137 | } |
| 138 | 138 | |
| 139 | + /** |
|
| 140 | + * @param string $iconUrl |
|
| 141 | + * @param string $visitedIconUrl |
|
| 142 | + */ |
|
| 139 | 143 | private function getLocationJsonObject( Location $location, array $params, $iconUrl, $visitedIconUrl ) { |
| 140 | 144 | $jsonObj = $location->getJSONObject( $params['title'], $params['label'], $iconUrl, '', '', $visitedIconUrl ); |
| 141 | 145 | |
@@ -205,6 +205,10 @@ |
||
| 205 | 205 | return $location->getJSONObject(); |
| 206 | 206 | } |
| 207 | 207 | |
| 208 | + /** |
|
| 209 | + * @param string $iconUrl |
|
| 210 | + * @param string $visitedIconUrl |
|
| 211 | + */ |
|
| 208 | 212 | private function getJsonForStaticLocations( array $staticLocations, array $params, $iconUrl, $visitedIconUrl ) { |
| 209 | 213 | $locationsJson = []; |
| 210 | 214 | |
@@ -65,6 +65,9 @@ |
||
| 65 | 65 | } |
| 66 | 66 | } |
| 67 | 67 | |
| 68 | + /** |
|
| 69 | + * @return \ParamProcessor\ProcessingResult |
|
| 70 | + */ |
|
| 68 | 71 | private function processParameters( MappingService $service, array $displayParams ) { |
| 69 | 72 | $processor = Processor::newDefault(); |
| 70 | 73 | |
@@ -93,7 +93,7 @@ |
||
| 93 | 93 | * |
| 94 | 94 | * @see ParserHook::getDefaultParameters |
| 95 | 95 | * |
| 96 | - * @return array |
|
| 96 | + * @return string[] |
|
| 97 | 97 | */ |
| 98 | 98 | protected function getDefaultParameters( $type ) { |
| 99 | 99 | return [ 'location', 'format', 'directional' ]; |
@@ -98,7 +98,7 @@ |
||
| 98 | 98 | * |
| 99 | 99 | * @param $type |
| 100 | 100 | * |
| 101 | - * @return array |
|
| 101 | + * @return string[] |
|
| 102 | 102 | */ |
| 103 | 103 | protected function getDefaultParameters( $type ) { |
| 104 | 104 | return [ 'distance', 'unit', 'decimals' ]; |
@@ -111,7 +111,7 @@ |
||
| 111 | 111 | * |
| 112 | 112 | * @see ParserHook::getDefaultParameters |
| 113 | 113 | * |
| 114 | - * @return array |
|
| 114 | + * @return string[] |
|
| 115 | 115 | */ |
| 116 | 116 | protected function getDefaultParameters( $type ) { |
| 117 | 117 | return [ 'location', 'bearing', 'distance' ]; |
@@ -104,7 +104,7 @@ |
||
| 104 | 104 | * |
| 105 | 105 | * @see ParserHook::getDefaultParameters |
| 106 | 106 | * |
| 107 | - * @return array |
|
| 107 | + * @return string[] |
|
| 108 | 108 | */ |
| 109 | 109 | protected function getDefaultParameters( $type ) { |
| 110 | 110 | return [ 'location' ]; |
@@ -113,7 +113,7 @@ |
||
| 113 | 113 | * |
| 114 | 114 | * @param $type |
| 115 | 115 | * |
| 116 | - * @return array |
|
| 116 | + * @return string[] |
|
| 117 | 117 | */ |
| 118 | 118 | protected function getDefaultParameters( $type ) { |
| 119 | 119 | return [ 'location1', 'location2', 'unit', 'decimals' ]; |