@@ -19,6 +19,9 @@ |
||
19 | 19 | |
20 | 20 | private $geocoder; |
21 | 21 | |
22 | + /** |
|
23 | + * @param \Jeroen\SimpleGeocoder\Geocoders\Decorators\CoordinateFriendlyGeocoder $geocoder |
|
24 | + */ |
|
22 | 25 | public function __construct( $geocoder = null ) { |
23 | 26 | $this->geocoder = $geocoder instanceof Geocoder ? $geocoder : MapsFactory::newDefault()->getGeocoder(); |
24 | 27 | } |
@@ -23,6 +23,9 @@ |
||
23 | 23 | private $pageContentFetcher; |
24 | 24 | private $defaultNamespace; |
25 | 25 | |
26 | + /** |
|
27 | + * @param FileFetcher $fileFetcher |
|
28 | + */ |
|
26 | 29 | public function __construct( $fileFetcher = null, PageContentFetcher $pageContentFetcher = null ) { |
27 | 30 | $this->fileFetcher = $fileFetcher instanceof FileFetcher |
28 | 31 | ? $fileFetcher : MapsFactory::newDefault()->getGeoJsonFileFetcher(); |
@@ -67,6 +67,7 @@ |
||
67 | 67 | |
68 | 68 | /** |
69 | 69 | * @see SMWDataValue::parseUserValue |
70 | + * @param string $value |
|
70 | 71 | */ |
71 | 72 | protected function parseUserValue( $value ) { |
72 | 73 | if ( !is_string( $value ) ) { |
@@ -145,6 +145,9 @@ discard block |
||
145 | 145 | ); |
146 | 146 | } |
147 | 147 | |
148 | + /** |
|
149 | + * @param string $locationDelimiter |
|
150 | + */ |
|
148 | 151 | private static function getParameterDefinitions( $locationDelimiter ): array { |
149 | 152 | $params = MapsFunctions::getCommonParameters(); |
150 | 153 | |
@@ -171,6 +174,9 @@ discard block |
||
171 | 174 | } |
172 | 175 | } |
173 | 176 | |
177 | + /** |
|
178 | + * @param boolean $value |
|
179 | + */ |
|
174 | 180 | private function getParameterWithValue( ProcessedParam $param, $value ) { |
175 | 181 | return new ProcessedParam( |
176 | 182 | $param->getName(), |