@@ -132,7 +132,7 @@ |
||
132 | 132 | * @since 0.5 |
133 | 133 | * |
134 | 134 | * @param object $object |
135 | - * @return bool|int |
|
135 | + * @return integer |
|
136 | 136 | * |
137 | 137 | * @throws RuntimeException |
138 | 138 | */ |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | * |
198 | 198 | * @param string $languageCode |
199 | 199 | * |
200 | - * @return string|bool |
|
200 | + * @return false|string |
|
201 | 201 | */ |
202 | 202 | public function getDescription( $languageCode ) { |
203 | 203 | if ( !$this->getFingerprint()->hasDescription( $languageCode ) ) { |
@@ -215,7 +215,7 @@ discard block |
||
215 | 215 | * |
216 | 216 | * @param string $languageCode |
217 | 217 | * |
218 | - * @return string|bool |
|
218 | + * @return false|string |
|
219 | 219 | */ |
220 | 220 | public function getLabel( $languageCode ) { |
221 | 221 | if ( !$this->getFingerprint()->hasLabel( $languageCode ) ) { |
@@ -11,7 +11,6 @@ |
||
11 | 11 | use Wikibase\DataModel\Term\AliasGroupList; |
12 | 12 | use Wikibase\DataModel\Term\Fingerprint; |
13 | 13 | use Wikibase\DataModel\Term\FingerprintProvider; |
14 | -use Wikibase\DataModel\Term\Term; |
|
15 | 14 | use Wikibase\DataModel\Term\TermList; |
16 | 15 | |
17 | 16 | /** |
@@ -381,7 +381,7 @@ |
||
381 | 381 | /** |
382 | 382 | * @see ArrayObject::append |
383 | 383 | * |
384 | - * @param mixed $value |
|
384 | + * @param Hashable $value |
|
385 | 385 | */ |
386 | 386 | public function append( $value ) { |
387 | 387 | $this->setElement( null, $value ); |
@@ -84,7 +84,7 @@ |
||
84 | 84 | /** |
85 | 85 | * @see Comparable::equals |
86 | 86 | * |
87 | - * @param mixed $target |
|
87 | + * @param AliasGroup $target |
|
88 | 88 | * |
89 | 89 | * @return bool |
90 | 90 | */ |
@@ -28,6 +28,9 @@ |
||
28 | 28 | |
29 | 29 | private $guidCounter = 0; |
30 | 30 | |
31 | + /** |
|
32 | + * @param string $guid |
|
33 | + */ |
|
31 | 34 | private function makeStatement( Snak $mainSnak, $guid = null ) { |
32 | 35 | if ( $guid === null ) { |
33 | 36 | $this->guidCounter++; |
@@ -51,6 +51,10 @@ |
||
51 | 51 | return $statement; |
52 | 52 | } |
53 | 53 | |
54 | + /** |
|
55 | + * @param integer $propertyId |
|
56 | + * @param string $stringValue |
|
57 | + */ |
|
54 | 58 | private function getStatementWithSnak( $propertyId, $stringValue ) { |
55 | 59 | $snak = $this->newSnak( $propertyId, $stringValue ); |
56 | 60 | $statement = new Statement( $snak ); |
@@ -30,6 +30,10 @@ |
||
30 | 30 | $this->assertTrue( $statements->hasStatementWithGuid( 'some guid' ) ); |
31 | 31 | } |
32 | 32 | |
33 | + /** |
|
34 | + * @param integer $propertyId |
|
35 | + * @param string|null $guid |
|
36 | + */ |
|
33 | 37 | private function newStatement( $propertyId, $guid ) { |
34 | 38 | $statement = new Statement( new PropertyNoValueSnak( $propertyId ) ); |
35 | 39 | $statement->setGuid( $guid ); |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | * Can be ItemId since 0.5. |
61 | 61 | * Can be null since 1.0. |
62 | 62 | * |
63 | - * @param ItemId|int|null $id |
|
63 | + * @param integer $id |
|
64 | 64 | * |
65 | 65 | * @throws InvalidArgumentException |
66 | 66 | */ |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | /** |
110 | 110 | * @since 0.1 return type changed in 0.3 |
111 | 111 | * |
112 | - * @return ItemId|null |
|
112 | + * @return EntityId|null |
|
113 | 113 | */ |
114 | 114 | public function getId() { |
115 | 115 | return $this->id; |
@@ -300,7 +300,7 @@ discard block |
||
300 | 300 | * |
301 | 301 | * @since 0.1 |
302 | 302 | * |
303 | - * @param mixed $target |
|
303 | + * @param Item $target |
|
304 | 304 | * |
305 | 305 | * @return bool |
306 | 306 | */ |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | /** |
107 | 107 | * @since 0.1 return type changed in 0.3 |
108 | 108 | * |
109 | - * @return PropertyId|null |
|
109 | + * @return EntityId|null |
|
110 | 110 | */ |
111 | 111 | public function getId() { |
112 | 112 | return $this->id; |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | * |
169 | 169 | * @since 0.1 |
170 | 170 | * |
171 | - * @param mixed $target |
|
171 | + * @param Property $target |
|
172 | 172 | * |
173 | 173 | * @return bool |
174 | 174 | */ |