@@ -210,7 +210,7 @@ |
||
210 | 210 | /** |
211 | 211 | * Returns a map of namespace names to URIs |
212 | 212 | * |
213 | - * @return array |
|
213 | + * @return string[] |
|
214 | 214 | */ |
215 | 215 | public function getNamespaces() { |
216 | 216 | return $this->vocabulary->getNamespaces(); |
@@ -341,7 +341,7 @@ discard block |
||
341 | 341 | /** |
342 | 342 | * @param EntityId $entityId |
343 | 343 | * |
344 | - * @return null|Term |
|
344 | + * @return \Wikibase\DataModel\Term\TermFallback|null |
|
345 | 345 | */ |
346 | 346 | private function getLabelDisplayTerm( EntityId $entityId ) { |
347 | 347 | return $this->labelDescriptionLookup->getLabel( $entityId ); |
@@ -350,7 +350,7 @@ discard block |
||
350 | 350 | /** |
351 | 351 | * @param EntityId $entityId |
352 | 352 | * |
353 | - * @return null|Term |
|
353 | + * @return \Wikibase\DataModel\Term\TermFallback|null |
|
354 | 354 | */ |
355 | 355 | private function getDescriptionDisplayTerm( EntityId $entityId ) { |
356 | 356 | return $this->labelDescriptionLookup->getDescription( $entityId ); |
@@ -22,7 +22,7 @@ |
||
22 | 22 | class DispatchingEntityRevisionLookupTest extends \PHPUnit_Framework_TestCase { |
23 | 23 | |
24 | 24 | /** |
25 | - * @return \PHPUnit_Framework_MockObject_MockObject|EntityRevisionLookup |
|
25 | + * @return \Wikibase\DataModel\Entity\EntityDocument |
|
26 | 26 | */ |
27 | 27 | private function getDummyEntityRevisionLookup() { |
28 | 28 | return $this->getMock( EntityRevisionLookup::class ); |
@@ -101,6 +101,8 @@ |
||
101 | 101 | |
102 | 102 | /** |
103 | 103 | * Gets a "lagged" database connection: We always leave out the first row on select. |
104 | + * @param integer $selectCount |
|
105 | + * @param integer $selectRowCount |
|
104 | 106 | */ |
105 | 107 | private function getLaggedDatabase( DatabaseBase $realDB, $selectCount, $selectRowCount ) { |
106 | 108 | $db = $this->getMockBuilder( DatabaseBase::class ) |
@@ -66,8 +66,8 @@ discard block |
||
66 | 66 | * @see TermBuffer::prefetchTerms |
67 | 67 | * |
68 | 68 | * @param array $entityIds |
69 | - * @param array|null $termTypes |
|
70 | - * @param array|null $languageCodes |
|
69 | + * @param string[] $termTypes |
|
70 | + * @param string[] $languageCodes |
|
71 | 71 | */ |
72 | 72 | public function prefetchTerms( array $entityIds, array $termTypes = null, array $languageCodes = null ) { |
73 | 73 | $groupedIds = $this->groupEntityIdsByRepo( $entityIds ); |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | * @param string $termType |
96 | 96 | * @param string $languageCode |
97 | 97 | * |
98 | - * @return string|false|null |
|
98 | + * @return string|null |
|
99 | 99 | */ |
100 | 100 | public function getPrefetchedTerm( EntityId $entityId, $termType, $languageCode ) { |
101 | 101 | $termBuffer = $this->getTermBufferForRepository( $entityId->getRepositoryName() ); |