@@ -295,6 +295,13 @@ discard block |
||
295 | 295 | return $parser; |
296 | 296 | } |
297 | 297 | |
298 | + /** |
|
299 | + * @param string $languageCode |
|
300 | + * @param string $userLanguageCode |
|
301 | + * @param boolean $interfaceMessage |
|
302 | + * @param boolean $disableContentConversion |
|
303 | + * @param boolean $disableTitleConversion |
|
304 | + */ |
|
298 | 305 | private function getParserOptions( $languageCode, $userLanguageCode, $interfaceMessage, |
299 | 306 | $disableContentConversion, $disableTitleConversion |
300 | 307 | ) { |
@@ -310,6 +317,9 @@ discard block |
||
310 | 317 | return $parserOptions; |
311 | 318 | } |
312 | 319 | |
320 | + /** |
|
321 | + * @return LanguageFallbackLabelDescriptionLookupFactory |
|
322 | + */ |
|
313 | 323 | private function getLanguageFallbackLabelDescriptionLookupFactory() { |
314 | 324 | $languageFallbackLabelDescriptionLookup = $this->getMockBuilder( LanguageFallbackLabelDescriptionLookup::class ) |
315 | 325 | ->disableOriginalConstructor() |
@@ -210,6 +210,9 @@ discard block |
||
210 | 210 | return $params; |
211 | 211 | } |
212 | 212 | |
213 | + /** |
|
214 | + * @param integer $baseRevId |
|
215 | + */ |
|
213 | 216 | protected function validateEntitySpecificParameters( |
214 | 217 | array $preparedParameters, |
215 | 218 | EntityDocument $entity, |
@@ -319,6 +322,9 @@ discard block |
||
319 | 322 | return $status; |
320 | 323 | } |
321 | 324 | |
325 | + /** |
|
326 | + * @param integer $oldRevId |
|
327 | + */ |
|
322 | 328 | private function addToOutput( EntityDocument $entity, Status $status, $oldRevId = null ) { |
323 | 329 | $this->getResultBuilder()->addBasicEntityInformation( $entity->getId(), 'entity' ); |
324 | 330 | $this->getResultBuilder()->addRevisionIdFromStatusToResult( $status, 'entity', $oldRevId ); |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | * @param EntityContent $content |
157 | 157 | * @param Title $title |
158 | 158 | * |
159 | - * @return DataUpdate[] |
|
159 | + * @return DataUpdateAdapter[] |
|
160 | 160 | */ |
161 | 161 | public function getEntityDeletionUpdates( EntityContent $content, Title $title ) { |
162 | 162 | $updates = []; |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | * @param EntityContent $content |
181 | 181 | * @param Title $title |
182 | 182 | * |
183 | - * @return DataUpdate[] |
|
183 | + * @return DataUpdateAdapter[] |
|
184 | 184 | */ |
185 | 185 | public function getEntityModificationUpdates( EntityContent $content, Title $title ) { |
186 | 186 | $updates = []; |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | * @param EntityContent $content |
157 | 157 | * @param Title $title |
158 | 158 | * |
159 | - * @return DataUpdate[] |
|
159 | + * @return DataUpdateAdapter[] |
|
160 | 160 | */ |
161 | 161 | public function getEntityDeletionUpdates( EntityContent $content, Title $title ) { |
162 | 162 | $updates = []; |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | * @param EntityContent $content |
181 | 181 | * @param Title $title |
182 | 182 | * |
183 | - * @return DataUpdate[] |
|
183 | + * @return DataUpdateAdapter[] |
|
184 | 184 | */ |
185 | 185 | public function getEntityModificationUpdates( EntityContent $content, Title $title ) { |
186 | 186 | $updates = []; |
@@ -64,7 +64,7 @@ |
||
64 | 64 | } |
65 | 65 | |
66 | 66 | /** |
67 | - * @param EntityDocument|StatementListProvider $entity |
|
67 | + * @param EntityDocument $entity |
|
68 | 68 | * @param PropertyId $propertyId |
69 | 69 | * |
70 | 70 | * @return EntityDocument|StatementListProvider |
@@ -166,6 +166,9 @@ |
||
166 | 166 | return $mockDataTypeLookup; |
167 | 167 | } |
168 | 168 | |
169 | + /** |
|
170 | + * @param string $string |
|
171 | + */ |
|
169 | 172 | private function fixLineEndings( $string ) { |
170 | 173 | return preg_replace( '~(*BSR_ANYCRLF)\R~', "\n", $string ); |
171 | 174 | } |
@@ -166,6 +166,9 @@ |
||
166 | 166 | return $mockDataTypeLookup; |
167 | 167 | } |
168 | 168 | |
169 | + /** |
|
170 | + * @param string $string |
|
171 | + */ |
|
169 | 172 | private function fixLineEndings( $string ) { |
170 | 173 | return preg_replace( '~(*BSR_ANYCRLF)\R~', "\n", $string ); |
171 | 174 | } |
@@ -214,7 +214,7 @@ |
||
214 | 214 | * @param string $pageTitle |
215 | 215 | * |
216 | 216 | * @throws InvalidArgumentException if a parameter does not have the expected type |
217 | - * @return EntityId|null |
|
217 | + * @return ItemId|null |
|
218 | 218 | */ |
219 | 219 | public function getEntityIdForLinkedTitle( $globalSiteId, $pageTitle ) { |
220 | 220 | return $this->getItemIdForLink( $globalSiteId, $pageTitle ); |
@@ -214,7 +214,7 @@ |
||
214 | 214 | * @param string $pageTitle |
215 | 215 | * |
216 | 216 | * @throws InvalidArgumentException if a parameter does not have the expected type |
217 | - * @return EntityId|null |
|
217 | + * @return ItemId|null |
|
218 | 218 | */ |
219 | 219 | public function getEntityIdForLinkedTitle( $globalSiteId, $pageTitle ) { |
220 | 220 | return $this->getItemIdForLink( $globalSiteId, $pageTitle ); |